]> git.sur5r.net Git - bacula/bacula/commitdiff
Test patch -- possible fix or improvement for bug #1053
authorKern Sibbald <kern@sibbald.com>
Tue, 4 Mar 2008 17:32:12 +0000 (17:32 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 4 Mar 2008 17:32:12 +0000 (17:32 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6532 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/acquire.c
bacula/technotes-2.3

index a9946dc35409971af0dd6ebbda14f7774a0ac83f..aa5d0b1c94868012c3580b0a64b75ce7faabadd1 100644 (file)
@@ -361,7 +361,10 @@ DCR *acquire_device_for_append(DCR *dcr)
          /* Wrong tape mounted, release it, then fall through to get correct one */
          Dmsg3(50, "Wrong tape mounted. Wanted:%s, got:%s, dev=%s release and try mount.\n",
               dcr->VolumeName, dev->VolHdr.VolumeName, dev->print_name());
-         release = true;
+         /* Release drive only if tape really in drive */
+         if (dev->VolHdr.VolumeName[0]) {
+            release = true;
+         }
          do_mount = true;
       } else {
          /*
index 57181831414ac7f06c00923de67b36c4a7c78760..095d91d4f9c13e831be8c5604205cac5f9a99ec6 100644 (file)
@@ -2,6 +2,7 @@
 
 General:
 04Mar08
+kes  Test patch -- possible fix or improvement for bug #1053
 kes  Refactor FD and SD status commands to permit new API code in
      SD, and to fix Win32 build.
 kes  Win32 build is now working.