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-3.0.0~1634 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=666ef64b6e73a8004e3e3508006a569b73b29224;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,