From 182ec03b955c4af3d748f7dba45e2e15c26c52ca Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Fri, 16 Oct 2009 09:33:22 +0200 Subject: [PATCH] Try to unmount by running the unmount command specified in the config on file and dvd devices. --- bacula/src/stored/dev.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- 2.39.5