From: Kern Sibbald Date: Wed, 19 Sep 2007 11:48:32 +0000 (+0000) Subject: Add patch for bug #908 X-Git-Tag: Release-2.2.5~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ace18a56cad9be6d8a0d70e4f525b8316c63acd;p=bacula%2Fbacula Add patch for bug #908 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5594 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/patches/2.2.4-poll-mount.patch b/bacula/patches/2.2.4-poll-mount.patch new file mode 100644 index 0000000000..a4676e942f --- /dev/null +++ b/bacula/patches/2.2.4-poll-mount.patch @@ -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 + 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;