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.0.2~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2211b8c645881db86b479446666e8b849102c593;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(),