]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl first patch to correct autoselect option
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 29 May 2008 08:00:50 +0000 (08:00 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 29 May 2008 08:00:50 +0000 (08:00 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7052 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/testing/autoselect.patch [new file with mode: 0644]

diff --git a/bacula/patches/testing/autoselect.patch b/bacula/patches/testing/autoselect.patch
new file mode 100644 (file)
index 0000000..8e8090f
--- /dev/null
@@ -0,0 +1,29 @@
+
+  This patch fixes the autoselect option that is broken for a while...
+
+  Apply it to version 2.2.8 or higher with:
+
+  cd <bacula-source>
+  patch -p0 <autoselect.patch
+  ./configure <your options>
+  make
+  ...
+  make install
+
+
+Index: src/stored/reserve.c
+===================================================================
+--- src/stored/reserve.c       (revision 7051)
++++ src/stored/reserve.c       (working copy)
+@@ -1093,6 +1093,11 @@
+          /* Try each device in this AutoChanger */
+          foreach_alist(rctx.device, changer->device) {
+             Dmsg1(dbglvl, "Try changer device %s\n", rctx.device->hdr.name);
++            if (!rctx.device->autoselect) {
++               Dmsg1(100, "Device %s not autoselect skipped.\n",
++                     rctx.device->hdr.name);
++               continue;              /* device is not available */
++            }
+             stat = reserve_device(rctx);
+             if (stat != 1) {             /* try another device */
+                continue;