]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
ext4: Test to ensure resize with sparse_super2 is handled correctly
authorOjaswin Mujoo <ojaswin@linux.ibm.com>
Tue, 22 Feb 2022 17:50:53 +0000 (23:20 +0530)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Apr 2022 10:32:20 +0000 (18:32 +0800)
commit034e1a796f4b7bebd845ba66bf362d75ca02ef59
tree475149f0b2899480eb659cfd104ceaee8e0c6c8c
parent50490c851139599d18a60897ffd32e8dc16e1328
ext4: Test to ensure resize with sparse_super2 is handled correctly

Kernel currently doesn't support resize of EXT4 mounted with
sparse_super2 option enabled. Earlier, it used to leave the resize
incomplete and the fs would be left in an inconsistent state,
however commit b1489186cc83[1] fixed this to avoid the fs corruption
by clearly returning -EOPNOTSUPP.

Test to ensure that kernel handles resizing with sparse_super2
correctly. Run resize for multiple iterations because this sometimes
leads to kernel crash due to fs corruption, which we want to detect.

Related commit in mainline:

[1] commit b1489186cc8391e0c1e342f9fbc3eedf6b944c61

ext4: add check to prevent attempting to resize an fs with sparse_super2

Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/ext4/056 [new file with mode: 0755]
tests/ext4/056.out [new file with mode: 0644]