From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q2VNSf1X006485 for ; Sat, 31 Mar 2012 18:28:41 -0500 Received: from bombadil.infradead.org (173-166-109-252-newengland.hfc.comcastbusiness.net [173.166.109.252]) by cuda.sgi.com with ESMTP id h4ddhz8krxFPqy1v (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Sat, 31 Mar 2012 16:28:37 -0700 (PDT) Received: from hch by bombadil.infradead.org with local (Exim 4.76 #1 (Red Hat Linux)) id 1SE7im-00055k-58 for xfs@oss.sgi.com; Sat, 31 Mar 2012 23:28:36 +0000 Date: Sat, 31 Mar 2012 19:28:36 -0400 From: Christoph Hellwig Subject: [PATCH] 030: fix for new xfs_repair versions Message-ID: <20120331232836.GA19572@infradead.org> MIME-Version: 1.0 Content-Disposition: inline List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com Given that we now drop invalid unlinked inode lists there is no message to capture. Also add a sed expression to avoid failures on old repair versions. Signed-off-by: Christoph Hellwig Index: xfstests-dev/030 =================================================================== --- xfstests-dev.orig/030 2012-03-31 23:15:11.000000000 +0000 +++ xfstests-dev/030 2012-03-31 23:18:31.000000000 +0000 @@ -55,7 +55,8 @@ _check_ag() for structure in 'sb 0' 'agf 0' 'agi 0' 'agfl 0' do echo "Corrupting $structure - setting bits to $1" - _check_repair $1 "$structure" + _check_repair $1 "$structure" | + sed -e 's/error following ag 0 unlinked list//' done } @@ -97,8 +98,7 @@ src/devzero -v -1 -n "$clear" $SCRATCH_D # now kick off the real repair test... # -_scratch_mkfs_xfs $DSIZE | _filter_mkfs | \ - sed -e 's/error following ag 0 unlinked list//' 2>$tmp.mkfs +_scratch_mkfs_xfs $DSIZE | _filter_mkfs 2>$tmp.mkfs . $tmp.mkfs _check_ag 0 _check_ag -1 Index: xfstests-dev/030.out.linux =================================================================== --- xfstests-dev.orig/030.out.linux 2012-03-31 23:19:09.000000000 +0000 +++ xfstests-dev/030.out.linux 2012-03-31 23:19:17.000000000 +0000 @@ -85,7 +85,6 @@ bad agbno AGBNO for inobt root, agno 0 root inode chunk not found Phase 3 - for each AG... - scan and clear agi unlinked lists... -error following ag 0 unlinked list - process known inodes and perform inode discovery... - process newly discovered inodes... Phase 4 - check for duplicate blocks... _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs