]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/dev.c
update version
[bacula/bacula] / bacula / src / stored / dev.c
index aa0425f6aae1ef8b27431f60932f44bd4a9a16d5..5ce5712eff40713d4a985f8252e2262ed28f7322 100644 (file)
@@ -353,6 +353,7 @@ DEVICE::open(DCR *dcr, int omode)
       }
    }
    if (dcr) {
+      dcr->setVolCatName(dcr->VolumeName);
       VolCatInfo = dcr->VolCatInfo;    /* structure assign */
    }
 
@@ -1922,9 +1923,7 @@ void DEVICE::clear_volhdr()
 void DEVICE::close()
 {
    Dmsg1(100, "close_dev %s\n", print_name());
-   if (has_cap(CAP_OFFLINEUNMOUNT)) {
-      offline();
-   }
+   offline_or_rewind();
 
    if (!is_open()) {
       Dmsg2(100, "device %s already closed vol=%s\n", print_name(),