--- /dev/null
+ This patch fixes bug #958 A Verify catalog Job that has differences reports Verify OK.
+
+ Apply it to version 2.2.4 (possibly earlier versions with):
+
+ cd <bacula-source>
+ patch -p0 <2.2.4-verify.patch
+ ./configure (your options)
+ make
+ ...
+ make install
+
+Index: src/dird/verify.c
+===================================================================
+--- src/dird/verify.c (revision 5553)
++++ src/dird/verify.c (working copy)
+@@ -332,13 +332,10 @@
+ }
+
+ stat = wait_for_job_termination(jcr);
+- if (stat == JS_Terminated) {
+- verify_cleanup(jcr, stat);
+- return true;
+- }
++ verify_cleanup(jcr, stat);
++ return true;
+
+ bail_out:
+- verify_cleanup(jcr, JS_ErrorTerminated);
+ return false;
+ }
+
+@@ -421,7 +418,7 @@
+ jobstatus_to_ascii(jcr->FDJobStatus, fd_term_msg, sizeof(fd_term_msg));
+ if (jcr->JobLevel == L_VERIFY_VOLUME_TO_CATALOG) {
+ jobstatus_to_ascii(jcr->SDJobStatus, sd_term_msg, sizeof(sd_term_msg));
+- Jmsg(jcr, msg_type, 0, _("Bacula %s %s (%s): %s\n"
++ Jmsg(jcr, msg_type, 0, _("Bacula %s %s (%s): %s\n"
+ " Build OS: %s %s %s\n"
+ " JobId: %d\n"
+ " Job: %s\n"
+@@ -456,7 +453,7 @@
+ sd_term_msg,
+ term_msg);
+ } else {
+- Jmsg(jcr, msg_type, 0, _("Bacula %s %s (%s): %s\n"
++ Jmsg(jcr, msg_type, 0, _("Bacula %s %s (%s): %s\n"
+ " Build: %s %s %s\n"
+ " JobId: %d\n"
+ " Job: %s\n"
+@@ -750,7 +747,9 @@
+ stat = JS_Differences;
+ }
+ free_pool_memory(fname);
+- set_jcr_job_status(jcr, stat);
++ if (!job_canceled(jcr)) {
++ jcr->JobStatus = stat;
++ }
+ return stat == JS_Terminated;
+ }
+
+Index: src/lib/jcr.c
+===================================================================
+--- src/lib/jcr.c (revision 5553)
++++ src/lib/jcr.c (working copy)
+@@ -614,9 +614,8 @@
+ /* Override more minor status */
+ jcr->JobStatus = JobStatus;
+ break;
+- default:
+- break;
+ }
++ break;
+ default:
+ jcr->JobStatus = JobStatus;
+ }
}
stat = wait_for_job_termination(jcr);
- if (stat == JS_Terminated) {
- verify_cleanup(jcr, stat);
- return true;
- }
+ verify_cleanup(jcr, stat);
bail_out:
- verify_cleanup(jcr, JS_ErrorTerminated);
return false;
}
stat = JS_Differences;
}
free_pool_memory(fname);
- set_jcr_job_status(jcr, stat);
+ if (!job_canceled(jcr)) {
+ jcr->JobStatus = stat;
+ }
return stat == JS_Terminated;
}
Technical notes on version 2.3
General:
-20Sep07
-ebl Fix #955 bug which was introduce with regexwhere relocation.
+0Sep07
+kes Apply 2.2.4-poll-mount fix, that resolves bug #908 where a tape
+ is not properly mounted (recognized) during a poll.
+kes Apply 2.2.4-verify patch that resolves bug #958. A Verify catalog
+ Job that has differences reports Verify OK.
+ebl Fixes #955 bug seg fault in Dir introduced with regexwhere relocation.
17Sep07
ebl Add an option to operate on all pools with update vol parameters.
This complete the project 20. Patch from Nigel Stepp.