From 388ff13943149add3c495923654ef53e3fbf2139 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 20 Nov 2014 13:45:34 +0100 Subject: [PATCH] Fix failed mount request in btape fill test --- bacula/src/stored/btape.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5