From 827c34b87197fdb2632748a3653ca3ffd244cf2e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 10 Oct 2011 11:09:52 +0200 Subject: [PATCH] First attempt to fix vtape-autoselect-test bug --- bacula/src/stored/reserve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/stored/reserve.c b/bacula/src/stored/reserve.c index 0176e75c49..50344de8b0 100644 --- a/bacula/src/stored/reserve.c +++ b/bacula/src/stored/reserve.c @@ -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) { -- 2.39.5