From c8ca6c4f7528c0d612dc969219858a8a7d317463 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 19 Sep 2007 11:49:42 +0000 Subject: [PATCH] Add patch for bug #908 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5596 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/patches/2.2.4-poll-mount.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 bacula/patches/2.2.4-poll-mount.patch 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; -- 2.39.5