]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.2.x/2.2.6-dvdwrite_trialfix.patch
ebl Add patch to cleanup orphaned jobs during startup
[bacula/bacula] / bacula / patches / 2.2.x / 2.2.6-dvdwrite_trialfix.patch
1   This patch should fix #1016 when there are more than one "part" to write.
2   Instead of each part being stored on disk, written to DVD, then deleted from
3   disk, all parts are written to disk, and only the last is written and deleted
4   from disk.
5
6   Apply it to 2.2.6 (and possibly previous 2.2.x versions) with:
7
8   cd <bacula-source>
9   patch -p0 <2.2.6-dvdwrite_trialfix.patch
10   ./configure <your-options>
11   make
12   ...
13   make install
14
15
16 Index: src/stored/dev.c
17 ===================================================================
18 --- src/stored/dev.c    (revision 5996)
19 +++ src/stored/dev.c    (working copy)
20 @@ -1856,7 +1856,7 @@
21     /* Clean up device packet so it can be reused */
22     clear_opened();
23     state &= ~(ST_LABEL|ST_READ|ST_APPEND|ST_EOT|ST_WEOT|ST_EOF|
24 -              ST_MOUNTED|ST_MEDIA|ST_SHORT|ST_FREESPACE_OK|ST_PART_SPOOLED);
25 +              ST_MOUNTED|ST_MEDIA|ST_SHORT);
26     label_type = B_BACULA_LABEL;
27     file = block_num = 0;
28     file_size = 0;