]> git.sur5r.net Git - bacula/bacula/commitdiff
Add additional error messages in acquiring a drive for read.
authorKern Sibbald <kern@sibbald.com>
Mon, 20 Nov 2006 13:30:22 +0000 (13:30 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 20 Nov 2006 13:30:22 +0000 (13:30 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3662 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/acquire.c
bacula/technotes-1.39

index fd9e53fb38438f2ce06b73daab63f689f917883b..877acb405c212c8e5b087578e8257907a19a8a4e 100644 (file)
@@ -61,7 +61,9 @@ bool acquire_device_for_read(DCR *dcr)
    /* Find next Volume, if any */
    vol = jcr->VolList;
    if (!vol) {
-      Jmsg(jcr, M_FATAL, 0, _("No volumes specified. Job %d canceled.\n"), jcr->JobId);
+      char ed1[50];
+      Jmsg(jcr, M_FATAL, 0, _("No volumes specified. Job %s canceled.\n"), 
+         edit_int64(jcr->JobId, ed1));
       goto get_out;
    }
    jcr->CurVolume++;
@@ -69,6 +71,8 @@ bool acquire_device_for_read(DCR *dcr)
       vol = vol->next;
    }
    if (!vol) {
+      Jmsg(jcr, M_FATAL, 0, _("Logic error: no next volume. Numvol=%d Curvol=%d\n"),
+         jcr->NumVolumes, jcr->CurVolume);
       goto get_out;                   /* should not happen */   
    }
    bstrncpy(dcr->VolumeName, vol->VolumeName, sizeof(dcr->VolumeName));
@@ -164,7 +168,9 @@ bool acquire_device_for_read(DCR *dcr)
       }
       dev->clear_labeled();              /* force reread of label */
       if (job_canceled(jcr)) {
-         Mmsg1(dev->errmsg, _("Job %d canceled.\n"), jcr->JobId);
+         char ed1[50];
+         Mmsg1(dev->errmsg, _("Job %s canceled.\n"), edit_int64(jcr->JobId, ed1));
+         Jmsg(jcr, M_INFO, 0, dev->errmsg);
          goto get_out;                /* error return */
       }
 
index 71b8a06119e632e46629723cb664eb8364ed685d..1a8aee955f12884fb9992277b84b245e83140cb7 100644 (file)
@@ -2,6 +2,7 @@
 
 General:
 20Nov06
+kes  Add additional error messages in acquiring a drive for read.   
 kes  Make WritePartAfterJob the default so that the last DVD part 
      always gets written to the DVD by default.
 kes  Add additional error messages in migration.