From: Kern Sibbald Date: Fri, 28 Mar 2008 10:41:35 +0000 (+0000) Subject: Turn off new SD swap code -- not likely to work X-Git-Tag: Release-7.0.0~4786 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f4678eaae93c6aced5a9ffd7d7307663876b7ef7;p=bacula%2Fbacula 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 --- 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,