]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug #1382 newly created disk volumes -> file not found warning
authorKern Sibbald <kern@sibbald.com>
Sat, 3 Oct 2009 11:07:41 +0000 (13:07 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 3 Oct 2009 11:07:41 +0000 (13:07 +0200)
bacula/src/stored/dev.c
bacula/src/stored/mount.c

index eb4679f7e2b0f8d41f5f280c3570e0d2e4116b1b..756f50c08c197b9c53b7843709d29e2ca4b28071 100644 (file)
@@ -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;
index ea8571c757c1191851f68031eb4873ef53c091e9..96fb652320b92cbdf84304b253f2a00bf2d84c06 100644 (file)
@@ -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;