]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
document change to log zeroing logic in xfs_repair.
authorNathan Scott <nathans@sgi.com>
Mon, 14 Jan 2002 02:14:31 +0000 (02:14 +0000)
committerNathan Scott <nathans@sgi.com>
Mon, 14 Jan 2002 02:14:31 +0000 (02:14 +0000)
doc/CHANGES
repair/phase2.c

index aeb67691046f6b15884553bb66bc5a11130e28c7..41153588204a44a59460ed9a0e723c75596f5596 100644 (file)
@@ -3,6 +3,8 @@ xfsprogs-1.3.17 (14 January 2002)
          driver signatures.
        - xfs_repair fix to prevent double insertion into the
          uncertain_inode AVL trees ("avl_insert: duplicate range")
+       - xfs_repair fix if the log is corrupted and we can't find
+         the head, don't exit - just proceed on with zeroing it
        - use snprintf instead of sprintf throughout
 
 xfsprogs-1.3.16 (17 December 2001)
index eda5806c9deec36dee9d08aeec8457cb3adb2442..4f3fb2d1e3496c4fae0d9cad432254b9556ffd70 100644 (file)
@@ -65,8 +65,9 @@ zero_log(xfs_mount_t *mp)
        log.l_mp = mp;
 
        if ((error = xlog_find_tail(&log, &head_blk, &tail_blk, 0))) {
-               do_error("xlog_find_tail returned error %d\n", error);
-               return;
+               do_warn("zero_log: cannot find log head/tail "
+                       "(xlog_find_tail=%d), zeroing it anyway\n",
+                       error);
        } else {
                if (verbose) {
                        do_warn("zero_log: head block %lld tail block %lld\n",