]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
remove dead code mount_request()
authorAlain Spineux <alain@baculasystems.com>
Tue, 3 Aug 2021 08:18:59 +0000 (10:18 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
bacula/src/dird/Makefile.in
bacula/src/dird/getmsg.c
bacula/src/dird/mountreq.c [deleted file]
bacula/src/dird/protos.h
bacula/src/win32/dird/Makefile

index 929b1f5336f0ff2dbd6e56d331a6700aaca0b3f1..d991de7539fe7de17af3a42492868016e590d0b0 100644 (file)
@@ -38,7 +38,7 @@ SVRSRCS = dird.c admin.c authenticate.c \
          dird_conf.c expand.c \
          fd_cmds.c getmsg.c inc_conf.c job.c \
          jobq.c mac.c mac_sql.c \
-         mountreq.c msgchan.c next_vol.c newvol.c \
+         msgchan.c next_vol.c newvol.c \
          recycle.c restore.c run_conf.c \
          scheduler.c store_mngr.c \
          ua_acl.c ua_cmds.c ua_dotcmds.c \
index f3514efff66d3df24305664b17debb031a232843..d12b440674e34bb237b62a22871181a9a0e7f4dd 100644 (file)
@@ -283,11 +283,6 @@ int bget_dirmsg(BSOCK *bs)
          }
          continue;
       }
-      if (bs->msg[0] == 'M') {        /* Mount request */
-         Dmsg1(900, "Mount req: %s", bs->msg);
-         mount_request(jcr, bs, msg);
-         continue;
-      }
       /* Get Progress: files, bytes, bytes/sec */
       if (bs->msg[0] == 'P') {       /* Progress report */
          uint32_t files, bps;
diff --git a/bacula/src/dird/mountreq.c b/bacula/src/dird/mountreq.c
deleted file mode 100644 (file)
index 76e4fed..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
-   Bacula(R) - The Network Backup Solution
-
-   Copyright (C) 2000-2020 Kern Sibbald
-
-   The original author of Bacula is Kern Sibbald, with contributions
-   from many others, a complete list can be found in the file AUTHORS.
-
-   You may use this file and others of this release according to the
-   license defined in the LICENSE file, which includes the Affero General
-   Public License, v3.0 ("AGPLv3") and some additional permissions and
-   terms pursuant to its AGPLv3 Section 7.
-
-   This notice must be preserved when any source code is
-   conveyed and/or propagated.
-
-   Bacula(R) is a registered trademark of Kern Sibbald.
-*/
-/*
- *
- *   Bacula Director -- mountreq.c -- handles the message channel
- *    Mount request from the Storage daemon.
- *
- *     Kern Sibbald, March MMI
- *
- *    This routine runs as a thread and must be thread reentrant.
- *
- *  Basic tasks done here:
- *      Handle Mount services.
- *
- */
-
-#include "bacula.h"
-#include "dird.h"
-
-/*
- * Handle mount request
- *  For now, we put the bsock in the UA's queue
- */
-
-/* Requests from the Storage daemon */
-
-
-/* Responses  sent to Storage daemon */
-#ifdef xxx
-static char OK_mount[]  = "1000 OK MountVolume\n";
-#endif
-
-static BQUEUE mountq = {&mountq, &mountq};
-static int num_reqs = 0;
-static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
-
-typedef struct mnt_req_s {
-   BQUEUE bq;
-   BSOCK *bs;
-   JCR *jcr;
-} MNT_REQ;
-
-
-void mount_request(JCR *jcr, BSOCK *bs, char *buf)
-{
-   MNT_REQ *mreq;
-
-   mreq = (MNT_REQ *) malloc(sizeof(MNT_REQ));
-   memset(mreq, 0, sizeof(MNT_REQ));
-   mreq->jcr = jcr;
-   mreq->bs = bs;
-   P(mutex);
-   num_reqs++;
-   qinsert(&mountq, &mreq->bq);
-   V(mutex);
-   return;
-}
index d78859898eefeab540a2195b4f3ad7ab9962b89d..b03a83e77f616e073b20db1ada89b0ecbdc1bdf5 100644 (file)
@@ -162,9 +162,6 @@ extern bool set_mac_wstorage(UAContext *ua, JCR *jcr, POOL *pool,
                POOL *next_pool, const char *source);
 
 
-/* mountreq.c */
-extern void mount_request(JCR *jcr, BSOCK *bs, char *buf);
-
 /* msgchan.c */
 extern BSOCK *open_sd_bsock(UAContext *ua);
 extern void close_sd_bsock(UAContext *ua);
index efcb241e916149a40aae2be09174ecc23b912195..20823313a6ed549ac8f17ec806d2be10c63e288f 100644 (file)
@@ -49,7 +49,6 @@ DIRD_OBJS = \
        $(OBJDIR)/inc_conf.o \
        $(OBJDIR)/job.o \
        $(OBJDIR)/jobq.o \
-       $(OBJDIR)/mountreq.o \
        $(OBJDIR)/msgchan.o \
        $(OBJDIR)/newvol.o \
        $(OBJDIR)/next_vol.o \