From: Kern Sibbald Date: Tue, 27 May 2003 07:20:21 +0000 (+0000) Subject: Release drive for btape unfill command X-Git-Tag: Release-1.31~102 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1f870affd35685001ae263dfcada96fe3b7f533a;p=bacula%2Fbacula Release drive for btape unfill command git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@554 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/btape.c b/bacula/src/stored/btape.c index f9dc249ce8..ae027642e9 100644 --- a/bacula/src/stored/btape.c +++ b/bacula/src/stored/btape.c @@ -1281,6 +1281,11 @@ static void unfillcmd() end_of_tape = 0; + /* Close device so user can use autochanger if desired */ + if (dev_cap(dev, CAP_OFFLINEUNMOUNT)) { + offline_dev(dev); + } + force_close_dev(dev); get_cmd(_("Mount first tape. Press enter when ready: ")); free_vol_list(jcr); @@ -1652,6 +1657,7 @@ int dir_find_next_appendable_volume(JCR *jcr) int dir_ask_sysop_to_mount_volume(JCR *jcr, DEVICE *dev) { + /* Close device so user can use autochanger if desired */ if (dev_cap(dev, CAP_OFFLINEUNMOUNT)) { offline_dev(dev); } @@ -1665,6 +1671,7 @@ int dir_ask_sysop_to_mount_volume(JCR *jcr, DEVICE *dev) int dir_ask_sysop_to_mount_next_volume(JCR *jcr, DEVICE *dev) { + /* Close device so user can use autochanger if desired */ if (dev_cap(dev, CAP_OFFLINEUNMOUNT)) { offline_dev(dev); }