From: Darrick J. Wong Date: Wed, 21 Jun 2017 21:57:20 +0000 (-0700) Subject: xfs/274: flip shared bits to reflect xfsprogs usage X-Git-Tag: v2022.05.01~1991 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=95cf534f03e27c2e840a690222583ed1d352d8a2;p=xfstests-dev.git xfs/274: flip shared bits to reflect xfsprogs usage xfs_io's fsmap command flipped the attrfork and shared bits, so we have to change them here too. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/274 b/tests/xfs/274 index 209c0670..ee433e0d 100755 --- a/tests/xfs/274 +++ b/tests/xfs/274 @@ -70,7 +70,7 @@ $XFS_IO_PROG -c 'bmap -v' $SCRATCH_MNT/f1 | grep '^[[:space:]]*[0-9]*:' | grep - echo "Check f1 bmap and fsmap" | tee -a $seqres.full cat $TEST_DIR/bmap | while read ext offrange colon blockrange ag agrange total crap; do - qstr="^[[:space:]]*[0-9]*:[[:space:]]*[0-9]*:[0-9]*[[:space:]]*${blockrange} :[[:space:]]*${ino}[[:space:]]*${offrange}[[:space:]]*${ag}[[:space:]]*${agrange}[[:space:]]*${total} 1000000$" + qstr="^[[:space:]]*[0-9]*:[[:space:]]*[0-9]*:[0-9]*[[:space:]]*${blockrange} :[[:space:]]*${ino}[[:space:]]*${offrange}[[:space:]]*${ag}[[:space:]]*${agrange}[[:space:]]*${total} 0100000$" echo "${qstr}" >> $seqres.full grep "${qstr}" $TEST_DIR/fsmap >> $seqres.full found=$(grep -c "${qstr}" $TEST_DIR/fsmap) @@ -83,7 +83,7 @@ $XFS_IO_PROG -c 'bmap -v' $SCRATCH_MNT/f2 | grep '^[[:space:]]*[0-9]*:' | grep - echo "Check f2 bmap and fsmap" | tee -a $seqres.full cat $TEST_DIR/bmap | while read ext offrange colon blockrange ag agrange total crap; do - qstr="^[[:space:]]*[0-9]*:[[:space:]]*[0-9]*:[0-9]*[[:space:]]*${blockrange} :[[:space:]]*${ino}[[:space:]]*${offrange}[[:space:]]*${ag}[[:space:]]*${agrange}[[:space:]]*${total} 1000000$" + qstr="^[[:space:]]*[0-9]*:[[:space:]]*[0-9]*:[0-9]*[[:space:]]*${blockrange} :[[:space:]]*${ino}[[:space:]]*${offrange}[[:space:]]*${ag}[[:space:]]*${agrange}[[:space:]]*${total} 0100000$" echo "${qstr}" >> $seqres.full grep "${qstr}" $TEST_DIR/fsmap >> $seqres.full found=$(grep -c "${qstr}" $TEST_DIR/fsmap)