From e3f75bdd460dfd8cbe6f494c2c11b72b6bd68f63 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 10 Jan 2008 09:50:43 +0000 Subject: [PATCH] Update comments git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6267 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/dev.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5