LCOV - code coverage report
Current view: top level - source3/lib - ctdb_dummy.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 0 33 0.0 %
Date: 2024-04-21 15:09:00 Functions: 0 16 0.0 %

          Line data    Source code
       1             : /*
       2             :    Unix SMB/CIFS implementation.
       3             :    Copyright (C) 2014 Björn Baumbach
       4             :    Copyright (C) 2014 Stefan Metzmacher
       5             : 
       6             :    This program is free software; you can redistribute it and/or modify
       7             :    it under the terms of the GNU General Public License as published by
       8             :    the Free Software Foundation; either version 3 of the License, or
       9             :    (at your option) any later version.
      10             : 
      11             :    This program is distributed in the hope that it will be useful,
      12             :    but WITHOUT ANY WARRANTY; without even the implied warranty of
      13             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14             :    GNU General Public License for more details.
      15             : 
      16             :    You should have received a copy of the GNU General Public License
      17             :    along with this program.  If not, see <http://www.gnu.org/licenses/>.
      18             : */
      19             : 
      20             : #include "includes.h"
      21             : #include "messages.h"
      22             : #include "lib/messages_ctdb.h"
      23             : #include "lib/messages_ctdb_ref.h"
      24             : #include "ctdbd_conn.h"
      25             : #include "lib/dbwrap/dbwrap.h"
      26             : #include "lib/dbwrap/dbwrap_ctdb.h"
      27             : #include "torture/proto.h"
      28             : 
      29           0 : int ctdbd_probe(const char *sockname, int timeout)
      30             : {
      31           0 :         return ENOSYS;
      32             : }
      33             : 
      34           0 : int ctdbd_messaging_send_iov(struct ctdbd_connection *conn,
      35             :                              uint32_t dst_vnn, uint64_t dst_srvid,
      36             :                              const struct iovec *iov, int iovlen)
      37             : {
      38           0 :         return ENOSYS;
      39             : }
      40             : 
      41           0 : int register_with_ctdbd(struct ctdbd_connection *conn, uint64_t srvid,
      42             :                         int (*cb)(struct tevent_context *ev,
      43             :                                   uint32_t src_vnn, uint32_t dst_vnn,
      44             :                                   uint64_t dst_srvid,
      45             :                                   const uint8_t *msg, size_t msglen,
      46             :                                   void *private_data),
      47             :                         void *private_data)
      48             : {
      49           0 :         return ENOSYS;
      50             : }
      51             : 
      52           0 : void deregister_from_ctdbd(struct ctdbd_connection *conn,
      53             :                            uint64_t srvid,
      54             :                            int (*cb)(struct tevent_context *ev,
      55             :                                      uint32_t src_vnn,
      56             :                                      uint32_t dst_vnn,
      57             :                                      uint64_t dst_srvid,
      58             :                                      const uint8_t *msg,
      59             :                                      size_t msglen,
      60             :                                      void *private_data),
      61             :                            void *private_data)
      62             : {
      63           0 : }
      64             : 
      65           0 : int ctdbd_register_ips(struct ctdbd_connection *conn,
      66             :                        const struct sockaddr_storage *_server,
      67             :                        const struct sockaddr_storage *_client,
      68             :                        int (*cb)(struct tevent_context *ev,
      69             :                                  uint32_t src_vnn, uint32_t dst_vnn,
      70             :                                  uint64_t dst_srvid,
      71             :                                  const uint8_t *msg, size_t msglen,
      72             :                                  void *private_data),
      73             :                        void *private_data)
      74             : {
      75           0 :         return ENOSYS;
      76             : }
      77             : 
      78           0 : void ctdbd_unregister_ips(struct ctdbd_connection *conn,
      79             :                           const struct sockaddr_storage *_server,
      80             :                           const struct sockaddr_storage *_client,
      81             :                           int (*cb)(struct tevent_context *ev,
      82             :                                     uint32_t src_vnn,
      83             :                                     uint32_t dst_vnn,
      84             :                                     uint64_t dst_srvid,
      85             :                                     const uint8_t *msg,
      86             :                                     size_t msglen,
      87             :                                     void *private_data),
      88             :                           void *private_data)
      89             : {
      90           0 :         return;
      91             : }
      92           0 : void ctdbd_passed_ips(struct ctdbd_connection *conn,
      93             :                       const struct sockaddr_storage *_server,
      94             :                       const struct sockaddr_storage *_client,
      95             :                       int (*cb)(struct tevent_context *ev,
      96             :                                 uint32_t src_vnn,
      97             :                                 uint32_t dst_vnn,
      98             :                                 uint64_t dst_srvid,
      99             :                                 const uint8_t *msg,
     100             :                                 size_t msglen,
     101             :                                 void *private_data),
     102             :                       void *private_data)
     103             : {
     104           0 :         return;
     105             : }
     106             : 
     107           0 : int ctdbd_public_ip_foreach(struct ctdbd_connection *conn,
     108             :                             int (*cb)(uint32_t total_ip_count,
     109             :                                       const struct sockaddr_storage *ip,
     110             :                                       bool is_movable_ip,
     111             :                                       void *private_data),
     112             :                             void *private_data)
     113             : {
     114           0 :         return ENOSYS;
     115             : }
     116             : 
     117           0 : int ctdbd_all_ip_foreach(struct ctdbd_connection *conn,
     118             :                          bool include_node_ips,
     119             :                          bool include_public_ips,
     120             :                          int (*cb)(uint32_t total_ip_count,
     121             :                                    const struct sockaddr_storage *ip,
     122             :                                    uint32_t pinned_pnn,
     123             :                                    uint32_t current_pnn,
     124             :                                    void *private_data),
     125             :                          void *private_data)
     126             : {
     127           0 :         return ENOSYS;
     128             : }
     129             : 
     130           0 : bool ctdbd_process_exists(struct ctdbd_connection *conn, uint32_t vnn,
     131             :                           pid_t pid, uint64_t unique_id)
     132             : {
     133           0 :         return false;
     134             : }
     135             : 
     136           0 : struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx,
     137             :                                 struct messaging_context *msg_ctx,
     138             :                                 const char *name,
     139             :                                 int hash_size, int tdb_flags,
     140             :                                 int open_flags, mode_t mode,
     141             :                                 enum dbwrap_lock_order lock_order,
     142             :                                 uint64_t dbwrap_flags)
     143             : {
     144           0 :         errno = ENOSYS;
     145           0 :         return NULL;
     146             : }
     147             : 
     148           0 : int messaging_ctdb_send(uint32_t dst_vnn, uint64_t dst_srvid,
     149             :                         const struct iovec *iov, int iovlen)
     150             : {
     151           0 :         return ENOSYS;
     152             : }
     153             : 
     154           0 : void *messaging_ctdb_ref(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
     155             :                          const char *sockname, int timeout, uint64_t unique_id,
     156             :                          void (*recv_cb)(struct tevent_context *ev,
     157             :                                          const uint8_t *msg, size_t msg_len,
     158             :                                          int *fds, size_t num_fds,
     159             :                                          void *private_data),
     160             :                          void *private_data,
     161             :                          int *err)
     162             : {
     163           0 :         return NULL;
     164             : }
     165             : 
     166           0 : struct messaging_ctdb_fde *messaging_ctdb_register_tevent_context(
     167             :         TALLOC_CTX *mem_ctx, struct tevent_context *ev)
     168             : {
     169           0 :         return NULL;
     170             : }
     171             : 
     172           0 : struct ctdbd_connection *messaging_ctdb_connection(void)
     173             : {
     174           0 :         return NULL;
     175             : }
     176             : 
     177           0 : int ctdb_async_ctx_reinit(TALLOC_CTX *mem_ctx, struct tevent_context *ev)
     178             : {
     179           0 :         return ENOSYS;
     180             : }

Generated by: LCOV version 1.14