]> git.sur5r.net Git - bacula/bacula/commitdiff
Add sanity check for VolFiles decreasing
authorKern Sibbald <kern@sibbald.com>
Fri, 19 Mar 2004 12:43:04 +0000 (12:43 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 19 Mar 2004 12:43:04 +0000 (12:43 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1143 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/ChangeLog
bacula/ReleaseNotes
bacula/src/dird/catreq.c
bacula/src/lib/message.c

index 60157ec77baae70fef21f0f8b497f581f0819e62..3415de833ca1bb8a862d5b7caf9d59b9dc93e44e 100644 (file)
@@ -1,4 +1,26 @@
 
+19Mar04
+- Hunt down missing free_locked_jcr() in SD that caused zombies.
+- Modify status outputs to be more consistent for zombie checking.
+- Add tests to regression script for zombie jobs.
+- Set EIO in dev_errno for all error returns when bad data found. This
+  fixes ERR=Success messages.
+- Make error messages all contain ERROR for easy regression testing.
+- Add sanity check in DIR for VolFiles becoming smaller.
+18Mar04
+- Second cut GTK+ restore GUI. Ready for testing but much more to do.
+- Phil reported an sql path length=0 message. This broke saves of 
+  /  -- fixed in scan.c
+- Fixed seg fault in btape "test" due to missing allocation of dcr.
+- Tweaked some btape messages.
+- Sort Volume names in Job report according to the order they were
+  written -- user request.
+17Mar04
+- First cut GTK+ restore GUI.
+- Applied bsmtp patch supplied by a user. Thanks.
+- Made a new split_path_and_filename() subroutine -- in lib/scan.c
+15Mar04
+- Fix "typos" in RedHat install-autostart Makefile.in
 13Mar04
 - Added two tar files that Phil sent for adding slackware support.
   Thanks Phil and Matt Howard.
index ce77c6920f464032d0a4e1fdcfe968a672c51640..4f83db8686f96949262ef68479596c79501af0d9 100644 (file)
@@ -42,6 +42,11 @@ New Commands:
 
 
 Most Significant Changes since 1.32f-4
+- Native Win32 Client -- much faster and does better restores than old
+  Cygwin Win32 Client.
+- Implement Gnome 2.0 restore GUI
+- Implement data spooling
+- Implement Volume Polling
 - Add a missing unlock in the jobq handler.
 - Fix bug where a soft linked file and a directory had the same name
   by treating the soft link as a directory and putting the entries under
index b5ce46a2825d5fc864b89b26a3e2fb469e1f3ff8..b7e89483af20224d6e1b3059285418cde2c698e9 100644 (file)
@@ -176,8 +176,8 @@ void catalog_request(JCR *jcr, BSOCK *bs, char *msg)
    
    /*
     * Request to update Media record. Comes typically at the end
-    *  of a Storage daemon Job Session or when labeling/relabeling a
-    *  Volume.
+    *  of a Storage daemon Job Session, when labeling/relabeling a
+    *  Volume, or when an EOF mark is written.
     */
    } else if (sscanf(bs->msg, Update_media, &Job, &sdmr.VolumeName, &sdmr.VolJobs,
       &sdmr.VolFiles, &sdmr.VolBlocks, &sdmr.VolBytes, &sdmr.VolMounts, &sdmr.VolErrors,
@@ -205,6 +205,14 @@ void catalog_request(JCR *jcr, BSOCK *bs, char *msg)
       Dmsg2(300, "label=%d labeldate=%d\n", label, mr.LabelDate);
       if (label || mr.LabelDate == 0) {
         mr.LabelDate = time(NULL);
+      } else {
+        /*
+         * Insanity check for VolFiles get set to a smaller value
+         */
+        if (sdmr.VolFiles < mr.VolFiles) {
+            Jmsg(jcr, M_ERROR, 0, _("ERROR!! Volume Files at %u being set to %u. This is probably wrong.\n"),
+              mr.VolFiles, sdmr.VolFiles);
+        }
       }
       Dmsg2(300, "Update media: BefVolJobs=%u After=%u\n", mr.VolJobs, sdmr.VolJobs);
       /* Copy updated values to original media record */
index a5d49d1bd66b1c52f661ff599d2b1c60dee9c630..b8b4b004d0c1019035a8cb0b52427c1b858a2c03 100755 (executable)
@@ -893,9 +893,9 @@ e_msg(const char *file, int line, int type, int level, const char *fmt,...)
        break;
     case M_ERROR:
        if (level == -1)           /* skip details */
-          len = bsnprintf(buf, sizeof(buf), "%s: Error: ", my_name);
+          len = bsnprintf(buf, sizeof(buf), "%s: ERROR: ", my_name);
        else
-          len = bsnprintf(buf, sizeof(buf), "%s: Error in %s:%d ", my_name, file, line);
+          len = bsnprintf(buf, sizeof(buf), "%s: ERROR in %s:%d ", my_name, file, line);
        break;
     case M_WARNING:
        len = bsnprintf(buf, sizeof(buf), "%s: Warning: ", my_name);