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:
Darrick J. Wong
2019-07-24 08:56:31 -07:00
committed by Eryu Guan
parent 36da2c651a
commit 139f9a1630
3 changed files with 10 additions and 6 deletions
+10 -2
View File
@@ -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
-2
View File
@@ -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)
-2
View File
@@ -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)