From: Kern Sibbald Date: Thu, 10 Jan 2008 09:50:43 +0000 (+0000) Subject: Update comments X-Git-Tag: Release-7.0.0~5143 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e3f75bdd460dfd8cbe6f494c2c11b72b6bd68f63;p=bacula%2Fbacula Update comments git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6267 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index 52d5d29614..31b6f6ec4a 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -1855,6 +1855,10 @@ void DEVICE::close() /* Clean up device packet so it can be reused */ clear_opened(); + /* + * Be careful not to clear items needed by the DVD driver + * when it is closing a single part. + */ state &= ~(ST_LABEL|ST_READ|ST_APPEND|ST_EOT|ST_WEOT|ST_EOF| ST_MOUNTED|ST_MEDIA|ST_SHORT); label_type = B_BACULA_LABEL;