mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs: verify invalid metadata LSN detection
XFS v5 superblock fs' use metadata LSN tracking to determine when an on-disk structure was last written to disk. This is used to ensure log recovery operates correctly after an unclean shutdown. To work correctly, the on-disk metadata LSNs must always remain behind the current LSN with respect to the log. Historically, xfs_repair had a problem where it incorrectly formats the log to an LSN that is potentially behind existing metadata LSNs. As such, xfs_repair and the kernel have been updated to prevent, detect and recover from the problem. Add a test that intentionally formats the log incorrectly and verifies that the fs fails to mount and that xfs_repair detects the invalid metadata LSNs. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
876161d544
commit
2274eb58d8
@@ -0,0 +1,3 @@
|
||||
QA output created by 137
|
||||
mount failure detected
|
||||
repair failure detected
|
||||
Reference in New Issue
Block a user