]> git.sur5r.net Git - bacula/bacula/commitdiff
Add debug code for FreeBSD regress failures
authorKern Sibbald <kern@sibbald.com>
Wed, 17 Feb 2010 13:18:11 +0000 (14:18 +0100)
committerKern Sibbald <kern@sibbald.com>
Wed, 17 Feb 2010 13:19:03 +0000 (14:19 +0100)
bacula/src/lib/lockmgr.c
bacula/src/stored/mount.c

index 19db323fcdc5bfe7a69befb042260bc24ac3ce1d..97e99889efbab20a6d7efb58db8f1f8688f21892 100644 (file)
@@ -577,7 +577,7 @@ void *check_deadlock(void *)
       pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &old);
       pthread_testcancel();
    }
-   Pmsg0(000, "Undertaker is leaving...\n");
+   Dmsg0(100, "Exit check_deadlock.\n");
    pthread_cleanup_pop(1);
    return NULL;
 }
index 9e0987a3a3e7e8ede9841deeb512c29cad0037d3..6ad3f9c5b84559cb86750539bb3a56284871bb96 100644 (file)
@@ -280,7 +280,7 @@ read_volume:
          VolumeName);
 
       if (!dev->eod(dcr)) {
-         Dmsg2(150, "Unable to position to end of data on device %s: ERR=%s\n", 
+         Dmsg2(050, "Unable to position to end of data on device %s: ERR=%s\n", 
             dev->print_name(), dev->bstrerror());
          Jmsg(jcr, M_ERROR, 0, _("Unable to position to end of data on device %s: ERR=%s\n"),
             dev->print_name(), dev->bstrerror());
@@ -288,7 +288,7 @@ read_volume:
          goto mount_next_vol;
       }
       if (!is_eod_valid()) {
-         Dmsg0(150, "goto mount_next_vol\n");
+         Dmsg0(100, "goto mount_next_vol\n");
          goto mount_next_vol;
       }
 
@@ -618,11 +618,13 @@ bool DCR::is_eod_valid()
               " size=%s\n"), VolumeName, 
               edit_uint64(dev->VolCatInfo.VolCatBytes, ed1));
       } else {
-         Jmsg(jcr, M_ERROR, 0, _("Bacula cannot write on disk Volume \"%s\" because: "
+         Mmsg(jcr->errmsg, _("Bacula cannot write on disk Volume \"%s\" because: "
               "The sizes do not match! Volume=%s Catalog=%s\n"),
               VolumeName,
               edit_uint64(pos, ed1),
               edit_uint64(dev->VolCatInfo.VolCatBytes, ed2));
+         Jmsg(jcr, M_ERROR, 0, jcr->errmsg);
+         Dmsg0(050, jcr->errmsg);
          mark_volume_in_error();
          return false;
       }