From: Nathan Scott Date: Mon, 14 Jan 2002 02:14:31 +0000 (+0000) Subject: document change to log zeroing logic in xfs_repair. X-Git-Tag: v2.0.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94bc4126bd90d0379dada851b7c6dc9a51792df5;p=thirdparty%2Fxfsprogs-dev.git document change to log zeroing logic in xfs_repair. --- diff --git a/doc/CHANGES b/doc/CHANGES index aeb676910..411535882 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -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) diff --git a/repair/phase2.c b/repair/phase2.c index eda5806c9..4f3fb2d1e 100644 --- a/repair/phase2.c +++ b/repair/phase2.c @@ -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",