]> git.sur5r.net Git - bacula/bacula/commitdiff
kes Fix migration code to get correct Volume name with multiple volumes
authorKern Sibbald <kern@sibbald.com>
Wed, 12 Sep 2007 07:17:50 +0000 (07:17 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 12 Sep 2007 07:17:50 +0000 (07:17 +0000)
     by skipping |.  Fixes bug #936.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5529 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/2.2.3-migrate-vol.patch [new file with mode: 0644]
bacula/src/dird/migrate.c
bacula/src/version.h
bacula/technotes-2.1
bacula/technotes-2.3

diff --git a/bacula/patches/2.2.3-migrate-vol.patch b/bacula/patches/2.2.3-migrate-vol.patch
new file mode 100644 (file)
index 0000000..cdb0a36
--- /dev/null
@@ -0,0 +1,28 @@
+  This patch corrects a bug where the last volume of a migration 
+  job is incorrectly found producing an error.  This fixes bug #936.
+  Apply the patch to 2.2.3 (and possibly earlier 2.2.x versions) with:
+
+  cd <bacula-source>
+  patch -p0 <2.2.3-migrate-vol.patch
+  ./configure (your options)
+  make
+  ...
+  make install
+
+Index: src/dird/migrate.c
+===================================================================
+--- src/dird/migrate.c (revision 5507)
++++ src/dird/migrate.c (working copy)
+@@ -1098,8 +1098,10 @@
+       if (mig_jcr->VolumeName[0]) {
+          /* Find last volume name. Multiple vols are separated by | */
+          char *p = strrchr(mig_jcr->VolumeName, '|');
+-         if (!p) {
+-            p = mig_jcr->VolumeName;
++         if (p) {
++            p++;                         /* skip | */
++         } else {
++            p = mig_jcr->VolumeName;     /* no |, take full name */
+          }
+          bstrncpy(mr.VolumeName, p, sizeof(mr.VolumeName));
+          if (!db_get_media_record(jcr, jcr->db, &mr)) {
index 223328c1f561b55f12f69988ffb65f4b5f7e9f91..c0f183d05a4a856ccacf9b6ea8a6540953d60ea4 100644 (file)
@@ -1098,8 +1098,10 @@ void migration_cleanup(JCR *jcr, int TermCode)
       if (mig_jcr->VolumeName[0]) {
          /* Find last volume name. Multiple vols are separated by | */
          char *p = strrchr(mig_jcr->VolumeName, '|');
-         if (!p) {
-            p = mig_jcr->VolumeName;
+         if (p) {
+            p++;                         /* skip | */
+         } else {
+            p = mig_jcr->VolumeName;     /* no |, take full name */
          }
          bstrncpy(mr.VolumeName, p, sizeof(mr.VolumeName));
          if (!db_get_media_record(jcr, jcr->db, &mr)) {
index 6cf785efc303b13ccfcfbb9d0b945aa2a1f2383f..684d24b4c396d32a66efe1c61d21b93a77429965 100644 (file)
@@ -3,9 +3,9 @@
  */
 
 #undef  VERSION
-#define VERSION "2.2.3"
-#define BDATE   "09 September 2007"
-#define LSMDATE "09Sep07"
+#define VERSION "2.2.4"
+#define BDATE   "12 September 2007"
+#define LSMDATE "12Sep07"
 
 #define PROG_COPYRIGHT "Copyright (C) %d-2007 Free Software Foundation Europe e.V.\n"
 #define BYEAR "2007"       /* year for copyright messages in progs */
index 3e941770b27e7aa3344ae122988529d741b41187..5be0b7b2209b3096291049dc01b8dafa21eebcab 100644 (file)
@@ -2,6 +2,8 @@
 
 General:
 12Sep07
+kes  Fix migration code to get correct Volume name with multiple volumes 
+     by skipping |.  Fixes bug #936.
 kes  Implement patch supplied by Landon to fix bug #944 where using
      TLS with bconsole uses 99+% of the CPU.
 kes  Move patches into patches directory.
index 00d106eee68990ae78b04819f86b7b06f4d158b6..81abacb68589fd80da8b804a3a81908173592633 100644 (file)
@@ -1,6 +1,52 @@
               Technical notes on version 2.3
 
 General:
+12Sep07
+kes  Fix migration code to get correct Volume name with multiple volumes 
+     by skipping |.  Fixes bug #936.
+kes  Implement patch supplied by Landon to fix bug #944 where using
+     TLS with bconsole uses 99+% of the CPU.
+kes  Note, you need GTK >= 2.10 to be able to link the Tray Monitor
+     program.
+kes  Move patches into patches directory.
+11Sep07 
+ebl  Fix bug #946 about "bacula-dir -t" witch doesn't works
+     as expected.
+09Sep07 
+ebl  Using "m" in bconsole will show messages like before,
+     and not memory usage.
+kes  Fix bug #935, and probably also bug #903 where files were not
+     restored. MediaId was not properly set in JobMedia record after
+     a Volume change.
+08Sep07
+kes  Suppress chown and chmod error messages if the FD is not running
+     as root.
+07Sep07
+kes  Apply Martin Simmons patch that should turn off the new API usage
+     when batch insert is turned off allowing building on older
+     PostgreSQLs.
+kes  Add ./configure search in qwt-qt4 for qwt package
+05Sep07
+kes  Bacula is now free of 3rd party GPL copyrighted code!
+kes  Remove idcache.c 
+kes  Add guid_to_name.c/h which replace idcache.
+kes  Remove enh_fnmatch.c.  Make code that references it use fnmatch.c
+04Sep07
+ebl  Detect if new PosgreSQL batch insert API is present.
+kes  Correct incorrect mempool call causing Director crash.
+sb   Update spec files for 2.2.1 release
+03Sep07
+kes  Fix memory pool call in ua_output.c. bug #934.
+kes  Replace fnmatch.c and fnmatch.h by modified BSD versions.
+     Add test program to fnmatch.c
+02Sep07
+kes  Integrate patch to README.vc8 from 
+     Hederer Jean-Sébastien <hedererjs@asperience.fr, had to manually
+     edit it to get it into Unix patch format.
+kes  Implement mkpath.c to replace old FSF makepath.c
+01Sep07
+kes  Implement savecwd.h and savecwd.c. Remove FSF versions.
+
 Release Version 2.2.1
 30Aug07
 kes  Update POTFILES.in