From: Kern Sibbald Date: Sun, 21 May 2017 08:23:58 +0000 (+0200) Subject: Tweak improve information when vol_mgr cannot release a volume X-Git-Tag: Release-7.9.0~22 X-Git-Url: https://git.sur5r.net/?p=bacula%2Fbacula;a=commitdiff_plain;h=cf956fdf94e5d3f5a04a21a95fdd8745834b038b Tweak improve information when vol_mgr cannot release a volume --- diff --git a/bacula/src/stored/vol_mgr.c b/bacula/src/stored/vol_mgr.c index 23d55606ab..7e5f64adb4 100644 --- a/bacula/src/stored/vol_mgr.c +++ b/bacula/src/stored/vol_mgr.c @@ -414,9 +414,10 @@ VOLRES *reserve_volume(DCR *dcr, const char *VolumeName) } else { /* Don't release a volume if it was reserved by someone other than us */ if (vol->is_in_use() && !dcr->reserved_volume) { - Dmsg2(dbglvl, "Set wait(). Cannot free vol=%s for %s. It is reserved.\n", vol->vol_name, VolumeName); - Mmsg1(dcr->jcr->errmsg, _("Cannot free Volume \"%s\", because it is reserved by someone else.\n"), - vol->vol_name); + Dmsg5(dbglvl, "Set wait(). Cannot free vol=%s for %s (JobId=%ld). volinuse=%d on %s\n", + vol->vol_name, VolumeName, vol->get_jobid(), vol->is_in_use(), dev->print_name()); + Mmsg3(dcr->jcr->errmsg, _("Cannot reserve Volume=%s because drive is busy with Volume=%s (JobId=%ld).\n"), + VolumeName, vol->vol_name, vol->get_jobid()); dev->set_wait(); vol = NULL; /* vol in use */ goto get_out;