mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/033: filter out root inode nlink repair
A couple of releases ago, xfs_repair was patched to set the root inode link count correctly when messing around with lost inodes. However, the old xfs_repair remains in the golden output, so remove it and filter the line so that we don't cause 'new' regressions on old software. 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
36da2c651a
commit
139f9a1630
+10
-2
@@ -91,9 +91,17 @@ src/feature -P $SCRATCH_DEV && \
|
||||
_notrun "PQuota are enabled, test needs controlled sb recovery"
|
||||
_scratch_unmount
|
||||
|
||||
# We fixed some bugs in xfs_repair that caused us to have to reset the inode
|
||||
# link counts on the root inode twice. That wasn't related to what this test
|
||||
# is checking, so remove the nlink reset line from the golden output and filter
|
||||
# old xfsprogs to avoid introducing new regressions.
|
||||
filter_repair() {
|
||||
sed -e '/resetting inode INO nlinks from 1 to 2/d'
|
||||
}
|
||||
|
||||
# rootino, rbmino, and rsumino are now set (lets blow em away!)
|
||||
_check_root_inos 0
|
||||
_check_root_inos -1 | _filter_bad_ids
|
||||
_check_root_inos 0 | filter_repair
|
||||
_check_root_inos -1 | filter_repair | _filter_bad_ids
|
||||
|
||||
# success, all done
|
||||
status=0
|
||||
|
||||
@@ -30,7 +30,6 @@ reinitializing root directory
|
||||
- traversal finished ...
|
||||
- moving disconnected inodes to lost+found ...
|
||||
Phase 7 - verify and correct link counts...
|
||||
resetting inode INO nlinks from 1 to 2
|
||||
done
|
||||
Corrupting rt bitmap inode - setting bits to 0
|
||||
Wrote X.XXKb (value 0x0)
|
||||
@@ -125,7 +124,6 @@ reinitializing root directory
|
||||
- traversal finished ...
|
||||
- moving disconnected inodes to lost+found ...
|
||||
Phase 7 - verify and correct link counts...
|
||||
resetting inode INO nlinks from 1 to 2
|
||||
done
|
||||
Corrupting rt bitmap inode - setting bits to -1
|
||||
Wrote X.XXKb (value 0xffffffff)
|
||||
|
||||
@@ -29,7 +29,6 @@ reinitializing root directory
|
||||
- traversal finished ...
|
||||
- moving disconnected inodes to lost+found ...
|
||||
Phase 7 - verify and correct link counts...
|
||||
resetting inode INO nlinks from 1 to 2
|
||||
done
|
||||
Corrupting rt bitmap inode - setting bits to 0
|
||||
Wrote X.XXKb (value 0x0)
|
||||
@@ -122,7 +121,6 @@ reinitializing root directory
|
||||
- traversal finished ...
|
||||
- moving disconnected inodes to lost+found ...
|
||||
Phase 7 - verify and correct link counts...
|
||||
resetting inode INO nlinks from 1 to 2
|
||||
done
|
||||
Corrupting rt bitmap inode - setting bits to -1
|
||||
Wrote X.XXKb (value 0xffffffff)
|
||||
|
||||
Reference in New Issue
Block a user