]> git.sur5r.net Git - bacula/bacula/commitdiff
Rewind on close to fix #1549
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 18 Apr 2010 10:28:19 +0000 (12:28 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 18 Apr 2010 10:28:19 +0000 (12:28 +0200)
bacula/src/stored/dev.c

index aa0425f6aae1ef8b27431f60932f44bd4a9a16d5..e7b8f3f1b55a438c3fea3e88b7451f62941594ce 100644 (file)
@@ -1922,9 +1922,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(),