2 This patch fixes the autoselect option that is broken for a while...
4 Apply it to version 2.2.8 or higher with:
7 patch -p0 <autoselect.patch
8 ./configure <your options>
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 */
27 stat = reserve_device(rctx);
28 if (stat != 1) { /* try another device */