From a9829fb5fd0cdfd3edd5b43a596607c7340f8949 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 18 Apr 2010 12:28:19 +0200 Subject: [PATCH] Rewind on close to fix #1549 --- bacula/src/stored/dev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index aa0425f6aa..e7b8f3f1b5 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -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(), -- 2.39.5