From: Marco van Wieringen Date: Fri, 16 Oct 2009 07:33:22 +0000 (+0200) Subject: Try to unmount by running the unmount command specified in the config on file and... X-Git-Tag: Release-5.0.0~283^2^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=561afaa7800bece547dce215217d34c969003ca6;p=bacula%2Fbacula Try to unmount by running the unmount command specified in the config on file and dvd devices. --- diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index 5969b49eef..eec423135b 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -1926,8 +1926,16 @@ void DEVICE::close() case B_VTAPE_DEV: case B_TAPE_DEV: unlock_door(); + d_close(m_fd); + break; + case B_FILE_DEV: + case B_DVD_DEV: + d_close(m_fd); + unmount(1); /* do unmount if required */ + break; default: d_close(m_fd); + break; } /* Clean up device packet so it can be reused */