]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
ext4/304: ignore EINVAL and ENODATA error
authorXiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Thu, 12 Feb 2015 03:13:44 +0000 (14:13 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 12 Feb 2015 03:13:44 +0000 (14:13 +1100)
ext4/304 is also ext4 defragmentation stress test, which creates several
threads to perform defragmentation using 'inplace' mode, but there is a
possible race that the donor file has been truncated by thread_A, while
thread_B starts to call ioctl(EXT4_IOC_MOVE_EXT), then we may get a
EINVAL or ENODATA error.

Please see: http://www.spinics.net/lists/linux-ext4/msg46900.html for
detailed information.

Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/ext4/304

index b9b435680a42ef6fe35e82e9c30c66281ef4c786..01c51a40e5286dbec6b4aa83d387dd15bec0ba75 100755 (executable)
@@ -61,6 +61,8 @@ filesize=${FILE_SIZE}
 size=999G
 buffered=0
 fadvise_hint=0
+continue_on_error=write
+ignore_error=,EINVAL:61
 
 #################################
 # Test4