ext4/059: disable block_validity checks when mounting a corrupted file system
PATCH 1/1 ext4/059: disable block_validity checks when mounting a corrupted file system
Kernels with the commit "ext4: add correct group descriptors and reserved GDT blocks to system zone" will refuse to mount the corrupted file system constructed by this test. So in order to perform the test, we need to disable the block_validity checks.
--- tests/ext4/059 | 5 +++++ 1 file changed, 5 insertions(+)
tests/ext4/059 +5 -0
@@ -31,6 +31,11 @@ $DEBUGFS_PROG -w -R "set_super_value s_reserved_gdt_blocks 100" $SCRATCH_DEV \ $DEBUGFS_PROG -R "show_super_stats -h" $SCRATCH_DEV 2>/dev/null | \ grep "Reserved GDT blocks" +# Kernels with the commit "ext4: add correct group descriptors and +# reserved GDT blocks to system zone" will refuse to mount the file +# system due to block_validity checks; so disable block_validity. +MOUNT_OPTIONS="$MOUNT_OPTIONS -o noblock_validity" + _scratch_mount # Expect no crash from this resize operation
Signature · 1 line
2.31.0
Hi Zorro,
Could you pick up this patch?
This test case has been failing in the mainline for a while now.
Thanks,
Baokun
Quoted 6 lines · Theodore Ts'o
Kernels with the commit "ext4: add correct group descriptors and reserved GDT blocks to system zone" will refuse to mount the corrupted file system constructed by this test. So in order to perform the test, we need to disable the
block_validitychecks.Signed-off-by Theodore Ts'o <[email protected]>
Looks good to me, thanks for the patch!
Quoted 20 lines
--- tests/ext4/059 | 5 +++++ 1 file changed, 5 insertions(+)tests/ext4/059 +5
-0@@ -31,6 +31,11 @@ $DEBUGFS_PROG -w -R "set_super_value s_reserved_gdt_blocks 100" $SCRATCH_DEV \ $DEBUGFS_PROG -R "show_super_stats -h" $SCRATCH_DEV 2>/dev/null | \ grep "Reserved GDT blocks" +# Kernels with the commit "ext4: add correct group descriptors and +# reserved GDT blocks to system zone" will refuse to mount the file +# system due to block_validity checks; so disable block_validity. +MOUNT_OPTIONS="$MOUNT_OPTIONS -o noblock_validity" + _scratch_mount # Expect no crash from this resize operation
Signature · 2 lines
With Best Regards, Baokun Li
Quoted 4 lines · Baokun Li
Hi Zorro,
Could you pick up this patch?
This test case has been failing in the mainline for a while now.
Sorry I just noticed this patch, looks like it was not sent to fstests@. Sure, I'll merge it, thanks for CC me :)
Thanks,
Zorro
Quoted 40 lines
Thanks,
BaokunQuoted 6 lines · Theodore Ts'o
Kernels with the commit "ext4: add correct group descriptors and reserved GDT blocks to system zone" will refuse to mount the corrupted file system constructed by this test. So in order to perform the test, we need to disable the
block_validitychecks.Signed-off-by Theodore Ts'o <[email protected]>Looks good to me, thanks for the patch!
Reviewed-and-tested-by Baokun Li <[email protected]>Quoted 18 lines
--- tests/ext4/059 | 5 +++++ 1 file changed, 5 insertions(+)tests/ext4/059 +5
-0@@ -31,6 +31,11 @@ $DEBUGFS_PROG -w -R "set_super_value s_reserved_gdt_blocks 100" $SCRATCH_DEV \ $DEBUGFS_PROG -R "show_super_stats -h" $SCRATCH_DEV 2>/dev/null | \ grep "Reserved GDT blocks" +# Kernels with the commit "ext4: add correct group descriptors and +# reserved GDT blocks to system zone" will refuse to mount the file +# system due to block_validity checks; so disable block_validity. +MOUNT_OPTIONS="$MOUNT_OPTIONS -o noblock_validity" + _scratch_mount # Expect no crash from this resize operationSignature · 2 lines
With Best Regards, Baokun Li
Quoted 7 lines · Zorro Lang
Quoted 4 lines · Baokun Li
Hi Zorro,
Could you pick up this patch?
This test case has been failing in the mainline for a while now.Sorry I just noticed this patch, looks like it was not sent to fstests@. Sure, I'll merge it, thanks for CC me :)
Thanks for merging it!
Seeing your reply I just noticed that the address of the fstests mail list was misspelled.
Cheers,
Baokun
Quoted 37 lines
Thanks,
ZorroQuoted 33 lines
Thanks,
BaokunQuoted 6 lines · Theodore Ts'o
Kernels with the commit "ext4: add correct group descriptors and reserved GDT blocks to system zone" will refuse to mount the corrupted file system constructed by this test. So in order to perform the test, we need to disable the
block_validitychecks.Signed-off-by Theodore Ts'o <[email protected]>Looks good to me, thanks for the patch!
Reviewed-and-tested-by Baokun Li <[email protected]>Quoted 19 lines
--- tests/ext4/059 | 5 +++++ 1 file changed, 5 insertions(+)tests/ext4/059 +5
-0@@ -31,6 +31,11 @@ $DEBUGFS_PROG -w -R "set_super_value s_reserved_gdt_blocks 100" $SCRATCH_DEV \ $DEBUGFS_PROG -R "show_super_stats -h" $SCRATCH_DEV 2>/dev/null | \ grep "Reserved GDT blocks" +# Kernels with the commit "ext4: add correct group descriptors and +# reserved GDT blocks to system zone" will refuse to mount the file +# system due to block_validity checks; so disable block_validity. +MOUNT_OPTIONS="$MOUNT_OPTIONS -o noblock_validity" + _scratch_mount # Expect no crash from this resize operation