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-7.0.0~2600^2^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=182ec03b955c4af3d748f7dba45e2e15c26c52ca;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 */