From: Kern Sibbald Date: Tue, 4 Mar 2008 17:32:12 +0000 (+0000) Subject: Test patch -- possible fix or improvement for bug #1053 X-Git-Tag: Release-7.0.0~4910 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=79c22df4eb0297ec1f6f74b5a3d1d6ad6af2616b;p=bacula%2Fbacula Test patch -- possible fix or improvement for bug #1053 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6532 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/acquire.c b/bacula/src/stored/acquire.c index a9946dc354..aa5d0b1c94 100644 --- a/bacula/src/stored/acquire.c +++ b/bacula/src/stored/acquire.c @@ -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 { /* diff --git a/bacula/technotes-2.3 b/bacula/technotes-2.3 index 5718183141..095d91d4f9 100644 --- a/bacula/technotes-2.3 +++ b/bacula/technotes-2.3 @@ -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.