From: Eric Bollengier Date: Thu, 20 Nov 2014 12:45:34 +0000 (+0100) Subject: Fix failed mount request in btape fill test X-Git-Tag: Release-7.2.0~64 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=388ff13943149add3c495923654ef53e3fbf2139;p=bacula%2Fbacula Fix failed mount request in btape fill test --- diff --git a/bacula/src/stored/btape.c b/bacula/src/stored/btape.c index 109294be96..c527467546 100644 --- a/bacula/src/stored/btape.c +++ b/bacula/src/stored/btape.c @@ -2522,6 +2522,7 @@ static bool do_unfill() dev->close(); dev->num_writers = 0; + dcr->clear_writing(); if (!acquire_device_for_read(dcr)) { Pmsg1(-1, "%s", dev->print_errmsg()); goto bail_out; @@ -2585,6 +2586,7 @@ static bool do_unfill() } dev->clear_read(); + dcr->clear_writing(); if (!acquire_device_for_read(dcr)) { Pmsg1(-1, "%s", dev->print_errmsg()); goto bail_out;