From a52350bea7b41a39331aaebb5d143c6781555879 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 21 Dec 2007 14:11:40 +0000 Subject: [PATCH] Tweaks git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6081 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/ua_run.c | 4 ++-- bacula/src/stored/acquire.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index 5d2de5c677..40eeb6e14a 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -449,10 +449,10 @@ try_again: Dmsg1(800, "Calling run_job job=%x\n", jcr->job); start_job: - Dmsg3(000, "JobId=%u using pool %s priority=%d\n", (int)jcr->JobId, + Dmsg3(100, "JobId=%u using pool %s priority=%d\n", (int)jcr->JobId, jcr->pool->name(), jcr->JobPriority); JobId = run_job(jcr); - Dmsg4(000, "JobId=%u NewJobId=%d using pool %s priority=%d\n", (int)jcr->JobId, + Dmsg4(100, "JobId=%u NewJobId=%d using pool %s priority=%d\n", (int)jcr->JobId, JobId, jcr->pool->name(), jcr->JobPriority); free_jcr(jcr); /* release jcr */ if (JobId == 0) { diff --git a/bacula/src/stored/acquire.c b/bacula/src/stored/acquire.c index 2fba360056..c8cb5571f8 100644 --- a/bacula/src/stored/acquire.c +++ b/bacula/src/stored/acquire.c @@ -373,12 +373,14 @@ DCR *acquire_device_for_append(DCR *dcr) do_mount = strcmp(dcr->VolCatInfo.VolCatStatus, "Recycle") == 0; Dmsg2(190, "jid=%u Correct tape mounted. recycle=%d\n", (uint32_t)jcr->JobId, do_mount); +#ifdef xxx if (do_mount && dev->num_writers != 0) { Jmsg(jcr, M_FATAL, 0, _("Cannot recycle volume \"%s\"" " on device %s because it is in use by another job.\n"), dev->VolHdr.VolumeName, dev->print_name()); goto get_out; } +#endif if (dev->num_writers == 0) { memcpy(&dev->VolCatInfo, &dcr->VolCatInfo, sizeof(dev->VolCatInfo)); } -- 2.39.5