From: Eric Bollengier Date: Sun, 18 Apr 2010 10:28:19 +0000 (+0200) Subject: Rewind on close to fix #1549 X-Git-Tag: Release-5.2.1~1457 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a9829fb5fd0cdfd3edd5b43a596607c7340f8949;p=bacula%2Fbacula Rewind on close to fix #1549 --- 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(),