From: Kern Sibbald Date: Sat, 3 Oct 2009 11:07:41 +0000 (+0200) Subject: Fix bug #1382 newly created disk volumes -> file not found warning X-Git-Tag: Release-5.0.0~293^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1993c26b9aa2fc5dd6a8daa2f8cd754dc0f001ed;p=bacula%2Fbacula Fix bug #1382 newly created disk volumes -> file not found warning --- 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;