mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/010: use correct type for finobt corrupting
Use 'type finobt' for corrupting the finobt. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
86d99a8225
commit
cd508feb01
+3
-3
@@ -63,14 +63,14 @@ _corrupt_finobt_records()
|
||||
_filter_dbval`
|
||||
|
||||
# Corrupt a freecount value. This should never exceed 64.
|
||||
$XFS_DB_PROG -x -c "fsb $free_root" -c "type inobt" \
|
||||
$XFS_DB_PROG -x -c "fsb $free_root" -c "type finobt" \
|
||||
-c "write recs[1].freecount 70" $dev
|
||||
|
||||
# Create a corrupted non-free record, which should never appear in the
|
||||
# finobt.
|
||||
$XFS_DB_PROG -x -c "fsb $free_root" -c "type inobt" \
|
||||
$XFS_DB_PROG -x -c "fsb $free_root" -c "type finobt" \
|
||||
-c "write recs[2].freecount 0" $dev
|
||||
$XFS_DB_PROG -x -c "fsb $free_root" -c "type inobt" \
|
||||
$XFS_DB_PROG -x -c "fsb $free_root" -c "type finobt" \
|
||||
-c "write recs[2].free 0" $dev
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user