From 1993c26b9aa2fc5dd6a8daa2f8cd754dc0f001ed Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 3 Oct 2009 13:07:41 +0200 Subject: [PATCH] Fix bug #1382 newly created disk volumes -> file not found warning --- bacula/src/stored/dev.c | 2 +- bacula/src/stored/mount.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index eb4679f7e2..756f50c08c 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -538,7 +538,7 @@ void DEVICE::open_file_device(DCR *dcr, int omode) Mmsg2(errmsg, _("Could not open: %s, ERR=%s\n"), archive_name.c_str(), be.bstrerror()); Dmsg1(100, "open failed: %s", errmsg); - Jmsg1(NULL, M_WARNING, 0, "%s", errmsg); +// Jmsg1(NULL, M_WARNING, 0, "%s", errmsg); } else { dev_errno = 0; file = 0; diff --git a/bacula/src/stored/mount.c b/bacula/src/stored/mount.c index ea8571c757..96fb652320 100644 --- a/bacula/src/stored/mount.c +++ b/bacula/src/stored/mount.c @@ -216,6 +216,8 @@ mount_next_vol: if (try_autolabel(false) == try_read_vol) { break; /* created a new volume label */ } + Jmsg3(jcr, M_WARNING, 0, _("Open device %s Volume \"%s\" failed: ERR=%s\n"), + dev->print_name(), dcr->VolumeName, dev->bstrerror()); Dmsg0(50, "set_unload\n"); dev->set_unload(); /* force ask sysop */ ask = true; -- 2.39.5