Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fanotify22: Make tests not depend on behavior of shutdown filesystem
The tests in fanotify22 implicitely depended on the fact that filesystem shutdown with 'abort' mount option keeps reporting further errors and further mounts with 'abort' option. This is however too strict (mostly a bug in ext4 implementation) and in principle reporting errors after the filesystem is shutdown is just a pointless noise. Ext4 recently modified the behavior of 'abort' mount option to behave the same as filesystem shutdown and thus also stop reporting further filesystem errors. Modify the tests to unmount and mount the filesystem after each test to get it out of the shutdown state for the following tests and also replace a test testing behavior after mounting with 'abort' mount option with a test testing two different filesystem corruption errors. Reviewed-by: Amir Goldstein <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]> Signed-off-by: Jan Kara <[email protected]>
- Loading branch information