]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak improve information when vol_mgr cannot release a volume
authorKern Sibbald <kern@sibbald.com>
Sun, 21 May 2017 08:23:58 +0000 (10:23 +0200)
committerKern Sibbald <kern@sibbald.com>
Mon, 22 May 2017 13:01:43 +0000 (15:01 +0200)
bacula/src/stored/vol_mgr.c

index 23d55606abaaa78935f8153e325a80785f74296e..7e5f64adb4bdeb45605c83191eea44643345cb1d 100644 (file)
@@ -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;