]> git.sur5r.net Git - bacula/bacula/commitdiff
Turn off new SD swap code -- not likely to work
authorKern Sibbald <kern@sibbald.com>
Fri, 28 Mar 2008 10:41:35 +0000 (10:41 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 28 Mar 2008 10:41:35 +0000 (10:41 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6700 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/reserve.c

index 1624bc36e19d3a08fa1782fc252bffd9fa8c3c7a..f41658d7e54f607d9ce7edade6bf4514f69a583a 100644 (file)
@@ -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,