mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/117: fix inode corruption loop
`seq X Y` will print all numbers between X and Y, including Y. Since inode chunks contain inodes numbered from X to X+63, we need to set the loop variables correctly. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
13a86fa73d
commit
1f3f20c52f
+1
-1
@@ -70,7 +70,7 @@ echo "+ check fs"
|
||||
_scratch_xfs_repair -n >> $seqres.full 2>&1 || _fail "xfs_repair should not fail"
|
||||
|
||||
echo "+ corrupt image"
|
||||
seq "${inode}" "$((inode + 64))" | while read ino; do
|
||||
seq "${inode}" "$((inode + 63))" | while read ino; do
|
||||
_scratch_xfs_db -x -c "inode ${ino}" -c "stack" -c "blocktrash -x 32 -y $((blksz * 8)) -z ${FUZZ_ARGS}" >> $seqres.full 2>&1
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user