From: Eric Bollengier Date: Fri, 13 Jun 2008 17:44:33 +0000 (+0000) Subject: ebl Fix autoselect option broken for a while. Fix #1089. Need some X-Git-Tag: Release-7.0.0~4466 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=83fb9cf1a05d754bdc6e234c13c0e66be8351dc9;p=bacula%2Fbacula ebl Fix autoselect option broken for a while. Fix #1089. Need some work with StorageId to be able to use a particular drive in a autochanger. --Ctte ligne, et les suivantes ci-dessous, seront ignorées-- M technotes-2.5 M src/stored/reserve.c git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7135 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/reserve.c b/bacula/src/stored/reserve.c index 280abd01b6..18b0787f21 100644 --- a/bacula/src/stored/reserve.c +++ b/bacula/src/stored/reserve.c @@ -1088,6 +1088,11 @@ int search_res_for_device(RCTX &rctx) /* Look through Autochangers first */ foreach_res(changer, R_AUTOCHANGER) { Dmsg1(dbglvl, "Try match changer res=%s\n", changer->hdr.name); + if (!rctx.device->autoselect) { + Dmsg1(100, "Device %s not autoselect skipped.\n", + rctx.device->hdr.name); + continue; /* device is not available */ + } /* Find resource, and make sure we were able to open it */ if (strcmp(rctx.device_name, changer->hdr.name) == 0) { /* Try each device in this AutoChanger */ diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index db133a85e4..ad48a2c915 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -25,6 +25,10 @@ vtape driver General: +13Jun08 +ebl Fix autoselect option broken for a while. Fix #1089. Need some + work with StorageId to be able to use a particular drive in a + autochanger. 09Jun08 ebl Rename faketape to vtape. ebl Update faketape driver.