]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/042: fix stale disk contents check
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 20 Mar 2019 00:44:55 +0000 (17:44 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sat, 23 Mar 2019 13:27:12 +0000 (21:27 +0800)
commit5144d265fd607f7fa8701eacb753465937c540b1
tree4dfdc7c41dcf31582c43f59bb925af38fde450b9
parent97fd33c767409c382fd8a7b368f7d1fc23fe75a4
generic/042: fix stale disk contents check

This test doesn't call fsync or sync to force writeback of the first 60k
of the file, which means that we could end up with a file full of
zeroes or an empty file.  Since this is a regression test that looks for
stale disk contents slipping through, change the test to look for the
stale bytes.

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/042