From 49aca243cb25f5feb6bb5c8d26a33bbd771f609d Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 29 Nov 2007 21:32:12 +0000 Subject: [PATCH] ebl Add Richard Mortimer patch about #1016 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5998 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/patches/2.2.6-dvdwrite_trialfix.patch | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bacula/patches/2.2.6-dvdwrite_trialfix.patch diff --git a/bacula/patches/2.2.6-dvdwrite_trialfix.patch b/bacula/patches/2.2.6-dvdwrite_trialfix.patch new file mode 100644 index 0000000000..044d09ec92 --- /dev/null +++ b/bacula/patches/2.2.6-dvdwrite_trialfix.patch @@ -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 + patch -p0 <2.2.6-dvdwrite_trialfix.patch + ./configure + 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; -- 2.39.5