2 This patch resolves bug #908 where a tape is not properly mounted
3 (recognized) during a poll.
5 Apply to version 2.2.4 (and perhaps older 2.2.x versions) with
8 patch -p0 <2.2.4-poll-mount.patch
9 ./configure (your options)
14 Index: src/stored/dev.c
15 ===================================================================
16 --- src/stored/dev.c (revision 5553)
17 +++ src/stored/dev.c (working copy)
20 /* Clean up device packet so it can be reused */
22 - state &= ~(ST_LABEL|ST_READ|ST_APPEND|ST_EOT|ST_WEOT|ST_EOF);
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 label_type = B_BACULA_LABEL;