]> git.sur5r.net Git - bacula/bacula/commitdiff
Add patch for bug #908
authorKern Sibbald <kern@sibbald.com>
Wed, 19 Sep 2007 11:48:32 +0000 (11:48 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 19 Sep 2007 11:48:32 +0000 (11:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5594 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/2.2.4-poll-mount.patch [new file with mode: 0644]

diff --git a/bacula/patches/2.2.4-poll-mount.patch b/bacula/patches/2.2.4-poll-mount.patch
new file mode 100644 (file)
index 0000000..a4676e9
--- /dev/null
@@ -0,0 +1,27 @@
+
+ This patch resolves bug #908 where a tape is not properly mounted
+ (recognized) during a poll.
+
+ Apply to version 2.2.4 (and perhaps older 2.2.x versions) with
+  
+ cd <bacula-source>
+ patch -p0 <2.2.4-poll-mount.patch
+ ./configure (your options)
+ make
+ ...
+ make install
+
+Index: src/stored/dev.c
+===================================================================
+--- src/stored/dev.c   (revision 5553)
++++ src/stored/dev.c   (working copy)
+@@ -1844,7 +1844,8 @@
+    /* Clean up device packet so it can be reused */
+    clear_opened();
+-   state &= ~(ST_LABEL|ST_READ|ST_APPEND|ST_EOT|ST_WEOT|ST_EOF);
++   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);
+    label_type = B_BACULA_LABEL;
+    file = block_num = 0;
+    file_size = 0;