]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add Richard Mortimer patch about #1016
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 29 Nov 2007 21:36:36 +0000 (21:36 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 29 Nov 2007 21:36:36 +0000 (21:36 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5999 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/2.2.6-dvdwrite_trialfix.patch [new file with mode: 0644]
bacula/src/stored/dev.c
bacula/technotes-2.3

diff --git a/bacula/patches/2.2.6-dvdwrite_trialfix.patch b/bacula/patches/2.2.6-dvdwrite_trialfix.patch
new file mode 100644 (file)
index 0000000..044d09e
--- /dev/null
@@ -0,0 +1,28 @@
+  This patch should fix #1016 when there are more than one "part" to write.
+  Instead of each part being stored on disk, written to DVD, then deleted from
+  disk, all parts are written to disk, and only the last is written and deleted
+  from disk.
+
+  Apply it to 2.2.6 (and possibly previous 2.2.x versions) with:
+
+  cd <bacula-source>
+  patch -p0 <2.2.6-dvdwrite_trialfix.patch
+  ./configure <your-options>
+  make
+  ...
+  make install
+
+
+Index: src/stored/dev.c
+===================================================================
+--- src/stored/dev.c   (revision 5996)
++++ src/stored/dev.c   (working copy)
+@@ -1856,7 +1856,7 @@
+    /* Clean up device packet so it can be reused */
+    clear_opened();
+    state &= ~(ST_LABEL|ST_READ|ST_APPEND|ST_EOT|ST_WEOT|ST_EOF|
+-              ST_MOUNTED|ST_MEDIA|ST_SHORT|ST_FREESPACE_OK|ST_PART_SPOOLED);
++              ST_MOUNTED|ST_MEDIA|ST_SHORT);
+    label_type = B_BACULA_LABEL;
+    file = block_num = 0;
+    file_size = 0;
index feaab57d33f95d2bb5783e32ab5b7c7f6a78a5f7..52d5d29614328023e964b5d137f2a00faee9748b 100644 (file)
@@ -1856,7 +1856,7 @@ void DEVICE::close()
    /* Clean up device packet so it can be reused */
    clear_opened();
    state &= ~(ST_LABEL|ST_READ|ST_APPEND|ST_EOT|ST_WEOT|ST_EOF|
-              ST_MOUNTED|ST_MEDIA|ST_SHORT|ST_FREESPACE_OK|ST_PART_SPOOLED);
+              ST_MOUNTED|ST_MEDIA|ST_SHORT);
    label_type = B_BACULA_LABEL;
    file = block_num = 0;
    file_size = 0;
index fda756c01262c9f6a3af894da728d2950c852871..779dcb1f1d4fe139ead07fe2ad6df39856102d5c 100644 (file)
@@ -1,6 +1,11 @@
               Technical notes on version 2.3
 
 General:
+29Nov07
+ebl  Apply Richard Mortimer patch that fixes #1016 when there are more than 
+     one "part" to write.  Instead of each part being stored on disk, 
+     written to DVD, then deleted from disk, all parts are written to disk,
+     and only the last is written and deleted from disk.
 kes  This patch fixes the status command to include the formating string for
      JS_AttrInsterting.  It fixes bug #1021.
 kes  This patch should fix the Mac OS X build problem on the latest