From: Kern Sibbald Date: Wed, 19 Sep 2007 11:49:42 +0000 (+0000) Subject: Add patch for bug #908 X-Git-Tag: Release-7.0.0~5651 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f88b37978a05f3b3e25728f2f9d0b984ef77d72e;p=bacula%2Fbacula Add patch for bug #908 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5596 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;