]> 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:10:05 +0000 (13:10 +0200)
bacula/src/stored/dev.c
bacula/src/stored/mount.c

index 98aa584f7202852585a76f36c51dcf14831e329c..02af56d68b4930975632dff00975c513f1121eb8 100644 (file)
@@ -531,7 +531,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 06d48b36d14fbae78382fbea0608f1b1fbd07825..5a1c4964eb843632b2d6dfc298a12c670a7fadf9 100644 (file)
@@ -214,6 +214,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;