generic/338: don't check fs after crashing it
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 4 Jul 2018 04:51:25 +0000 (21:51 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sat, 14 Jul 2018 11:42:26 +0000 (19:42 +0800)
This test tries to make the filesystem go down by setting up
dm-error and committing metadata updates.  Since the test doesn't
remount the fs after it goes down to recover the log, this can
result in a dirty log being presented to the post-test filesystem
check if the filesystem is xfs and quotas are enabled.

Since this is a regression test for a NULL pointer dereference in
the kernel after the fs goes down, simply skip the post-test fsck.

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>
tests/generic/338

index 6d701e833f49ad128c7dbca2c550bfd5633014bf..81122e2d357b79ac12acc8219168c41f8487fd61 100755 (executable)
@@ -36,7 +36,7 @@ rm -f $seqres.full
 # real QA test starts here
 _supported_fs generic
 _supported_os Linux
-_require_scratch
+_require_scratch_nocheck # fs went down with a dirty log, don't check it
 _require_dm_target error
 # If SCRATCH_DEV is not a valid block device, FSTYP cannot be mkfs'ed either
 _require_block_device $SCRATCH_DEV