]> git.sur5r.net Git - bacula/bacula/commitdiff
First attempt to fix vtape-autoselect-test bug
authorKern Sibbald <kern@sibbald.com>
Mon, 10 Oct 2011 09:09:52 +0000 (11:09 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:02 +0000 (14:50 +0200)
bacula/src/stored/reserve.c

index 0176e75c49d89a64007f478cd6a25b75339a308d..50344de8b0ebfd88d16f33e673a1a2652a3890af 100644 (file)
@@ -453,7 +453,7 @@ bool find_suitable_device_for_job(JCR *jcr, RCTX &rctx)
 
                if (vol->dev->is_autochanger()) {
                   Dmsg1(dbglvl, "vol=%s is in changer\n", vol->vol_name);
-                  if (!is_vol_in_autochanger(rctx, vol)) {
+                  if (!is_vol_in_autochanger(rctx, vol) || !vol->dev->autoselect) {
                      continue;
                   }
                } else if (strcmp(device_name, vol->dev->device->hdr.name) != 0) {