From f4678eaae93c6aced5a9ffd7d7307663876b7ef7 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 28 Mar 2008 10:41:35 +0000 Subject: [PATCH] Turn off new SD swap code -- not likely to work git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6700 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/reserve.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bacula/src/stored/reserve.c b/bacula/src/stored/reserve.c index 1624bc36e1..f41658d7e5 100644 --- a/bacula/src/stored/reserve.c +++ b/bacula/src/stored/reserve.c @@ -382,12 +382,13 @@ VOLRES *reserve_volume(DCR *dcr, const char *VolumeName) /* Check if we are trying to use the Volume on a different drive */ if (dev != vol->dev) { /* Caller wants to switch Volume to another device */ +#ifdef xxx Dmsg2(dbglvl, "==== Swap from dev=%s to %s\n", dev->print_name(), vol->dev->print_name()); switch_device(dcr, vol->dev); dev = vol->dev; bstrncpy(dcr->VolumeName, VolumeName, sizeof(dcr->VolumeName)); -#ifdef xxx +#else if (!vol->dev->is_busy()) { /* OK to move it -- I'm not sure this will work */ Dmsg3(dbglvl, "==== Swap vol=%s from dev=%s to %s\n", VolumeName, -- 2.39.5