From a0d6ccb5eb11d03ad5d7fb6bc45936994e5183e4 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 13 Jun 2008 17:44:33 +0000 Subject: [PATCH] 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. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --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 --- bacula/src/stored/reserve.c | 5 +++++ bacula/technotes-2.5 | 4 ++++ 2 files changed, 9 insertions(+) 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. -- 2.39.5