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