]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/274: flip shared bits to reflect xfsprogs usage
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 21 Jun 2017 21:57:20 +0000 (14:57 -0700)
committerEryu Guan <eguan@redhat.com>
Thu, 29 Jun 2017 09:54:07 +0000 (17:54 +0800)
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 <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/274

index 209c0670244f3dec10e5806e1dc9b0844533cd05..ee433e0dab7456aa4a785e609f55c08c9f544df0 100755 (executable)
@@ -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)