From: Kern Sibbald Date: Mon, 20 Jun 2005 14:01:23 +0000 (+0000) Subject: put wrong tape patch into patches X-Git-Tag: Release-7.0.0~8679 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=59df2d09e50240378205989b529f1bef87cd444a;p=bacula%2Fbacula put wrong tape patch into patches git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2152 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/patches/1.37.24-wrong-tape.patch b/bacula/patches/1.37.24-wrong-tape.patch new file mode 100644 index 0000000000..550bcda951 --- /dev/null +++ b/bacula/patches/1.37.24-wrong-tape.patch @@ -0,0 +1,53 @@ +This patch fixes a bug in version 1.37.24 when the wrong tape is initially loaded, the +Storage daemon thinks that the desired tape is already loaded. + +Apply the patch to 1.37.24 with: + + cd + patch -p0 <1.37.24-wrong-tape.patch + make + ... + +Index: src/version.h +=================================================================== +RCS file: /cvsroot/bacula/bacula/src/version.h,v +retrieving revision 1.498 +diff -u -r1.498 version.h +--- src/version.h 18 Jun 2005 13:37:19 -0000 1.498 ++++ src/version.h 20 Jun 2005 08:09:56 -0000 +@@ -1,8 +1,8 @@ + /* */ + #undef VERSION +-#define VERSION "1.37.24" +-#define BDATE "18 June 2005" +-#define LSMDATE "18Jun05" ++#define VERSION "1.37.25" ++#define BDATE "20 June 2005" ++#define LSMDATE "20Jun05" + + /* Debug flags */ + #undef DEBUG +Index: src/stored/mount.c +=================================================================== +RCS file: /cvsroot/bacula/bacula/src/stored/mount.c,v +retrieving revision 1.88 +diff -u -r1.88 mount.c +--- src/stored/mount.c 18 Jun 2005 13:22:36 -0000 1.88 ++++ src/stored/mount.c 20 Jun 2005 08:09:56 -0000 +@@ -190,7 +190,7 @@ + return false; + } + +- Dmsg2(100, "dirVol=%s dirStat=%s\n", dcr->VolumeName, ++ Dmsg2(100, "Want dirVol=%s dirStat=%s\n", dcr->VolumeName, + dcr->VolCatInfo.VolCatStatus); + /* + * At this point, dev->VolCatInfo has what is in the drive, if anything, +@@ -230,6 +230,7 @@ + memcpy(&VolCatInfo, &dcr->VolCatInfo, sizeof(VolCatInfo)); + memcpy(&devVolCatInfo, &dev->VolCatInfo, sizeof(devVolCatInfo)); + /* Check if this is a valid Volume in the pool */ ++ bstrncpy(dcr->VolumeName, dev->VolHdr.VolumeName, sizeof(dcr->VolumeName)); + if (!dir_get_volume_info(dcr, GET_VOL_INFO_FOR_WRITE)) { + /* Restore desired volume name, note device info out of sync */ + /* This gets the info regardless of the Pool */