From 5c1b9d4822c3b3eff23fee42dff20180205a53cd Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 29 May 2008 08:00:50 +0000 Subject: [PATCH] ebl first patch to correct autoselect option git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7052 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/patches/testing/autoselect.patch | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 bacula/patches/testing/autoselect.patch diff --git a/bacula/patches/testing/autoselect.patch b/bacula/patches/testing/autoselect.patch new file mode 100644 index 0000000000..8e8090f5db --- /dev/null +++ b/bacula/patches/testing/autoselect.patch @@ -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 + patch -p0 + 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; -- 2.39.5