mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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 <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
d55123c080
commit
95cf534f03
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user