]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/250: ignore xfs_io IO errors when writing to dmerror device
authorEryu Guan <eguan@redhat.com>
Thu, 26 May 2016 03:26:24 +0000 (11:26 +0800)
committerEryu Guan <eguan@redhat.com>
Wed, 15 Jun 2016 07:32:30 +0000 (15:32 +0800)
commit86e7366e84c29082ffcaf20c43e8239a10410d64
treea42f1f022bae29bcf22b1ef56e22639d40b7fdb3
parentdddc12bc76799fdb1b15ea51595626c490575cd1
generic/250: ignore xfs_io IO errors when writing to dmerror device

When testing with data=journal ext4, direct write to dmerror device
doesn't return EIO, because ext4 turns direct write to buffered
write in data=journal mode and all data is written to journal
buffer. The write only fails later when commiting journal and error
messages can be seen in dmesg.

As the test is checking on the md5 checksum of the test file, it's
ok to ignore the IO error returned by xfs_io, as long as the
checksums match the golden image.

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/250
tests/generic/250.out