]> git.sur5r.net Git - bacula/bacula/commitdiff
Try to unmount by running the unmount command specified in the config on file and...
authorMarco van Wieringen <mvw@planets.elm.net>
Fri, 16 Oct 2009 07:33:22 +0000 (09:33 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Fri, 16 Oct 2009 07:33:22 +0000 (09:33 +0200)
bacula/src/stored/dev.c

index 5969b49eef9c7126dedcd6c73ee62e660ea5e328..eec423135be5b8eeb524432e3fa06c06ae4be0b7 100644 (file)
@@ -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 */