]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/testing/autoselect.patch
ebl Add fix to avoid to expect the EndJob message with some
[bacula/bacula] / bacula / patches / testing / autoselect.patch
1
2   This patch fixes the autoselect option that is broken for a while...
3
4   Apply it to version 2.2.8 or higher with:
5
6   cd <bacula-source>
7   patch -p0 <autoselect.patch
8   ./configure <your options>
9   make
10   ...
11   make install
12
13
14 Index: src/stored/reserve.c
15 ===================================================================
16 --- src/stored/reserve.c        (revision 7051)
17 +++ src/stored/reserve.c        (working copy)
18 @@ -1093,6 +1093,11 @@
19           /* Try each device in this AutoChanger */
20           foreach_alist(rctx.device, changer->device) {
21              Dmsg1(dbglvl, "Try changer device %s\n", rctx.device->hdr.name);
22 +            if (!rctx.device->autoselect) {
23 +               Dmsg1(100, "Device %s not autoselect skipped.\n",
24 +                     rctx.device->hdr.name);
25 +               continue;              /* device is not available */
26 +            }
27              stat = reserve_device(rctx);
28              if (stat != 1) {             /* try another device */
29                 continue;