]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add 2.2.8-jobmedia-fix patch
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 25 Mar 2008 21:59:05 +0000 (21:59 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 25 Mar 2008 21:59:05 +0000 (21:59 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@6689 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/2.2.8-jobmedia-fix.patch [new file with mode: 0644]
bacula/patches/2.2.8-jobmedia.patch

diff --git a/bacula/patches/2.2.8-jobmedia-fix.patch b/bacula/patches/2.2.8-jobmedia-fix.patch
new file mode 100644 (file)
index 0000000..89807be
--- /dev/null
@@ -0,0 +1,40 @@
+
+ This patch fixes a bug that cause storage to create JOBMEDIA records 
+ for every block written to tape.
+
+ This Patch works with 2.2.8-jobmedia.patch
+
+ Apply this patch to Bacula 2.2.8 (and possibly any prior 2.2.x version) with:
+
+ cd <bacula-source>
+ patch -p0 <2.2.8-jobmedia-fix.patch
+ ./configure <your-options>
+ make
+ ...
+ make install
+
+
+Index: src/stored/block.c
+===================================================================
+--- src/stored/block.c  (revision 6531)
++++ src/stored/block.c  (working copy)
+@@ -374,7 +374,6 @@
+       if (dcr->NewVol) {
+          /* Note, setting a new volume also handles any pending new file */
+          set_new_volume_parameters(dcr);
+-         dcr->NewFile = false;        /* this handled for new file too */
+       } else {
+          set_new_file_parameters(dcr);
+       }
+Index: src/stored/device.c
+===================================================================
+--- src/stored/device.c (revision 6531)
++++ src/stored/device.c (working copy)
+@@ -226,6 +226,7 @@
+    }
+    set_new_file_parameters(dcr);
+    jcr->NumWriteVolumes++;
++   dcr->NewVol = false;
+ }
+
+ /*
index 497c9c7dba82bb5cc99e8ba9e0726c12456eaf86..5a6dad30223563d6b3423732324079aeacf4bebf 100644 (file)
@@ -4,10 +4,13 @@
  for the first record during a restore rather than seek directly to
  it.
 
+ You have to apply 2.2.8-jobmedia-fix.patch too.
+
  Apply this patch to Bacula 2.2.8 (and possibly any prior 2.2.x version) with:
 
  cd <bacula-source>
  patch -p0 <2.2.8-jobmedia.patch
+ patch -p0 <2.2.8-jobmedia-fix.patch
  ./configure <your-options>
  make
  ...