]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test stale data exposure after writeback crash
authorBrian Foster <bfoster@redhat.com>
Mon, 25 Mar 2019 17:17:25 +0000 (13:17 -0400)
committerEryu Guan <guaneryu@gmail.com>
Sat, 30 Mar 2019 09:50:39 +0000 (17:50 +0800)
commitfae1d350f9ee35b9b567bd66ea2e7dbcc0a85170
tree7e0079ce6beb4df0de316951c67802925324bd42
parent2d103d8ab81464eaff86a1dcf0751e7c40323c7b
generic: test stale data exposure after writeback crash

XFS has historically had a stale data exposure window if a crash
occurs after a delalloc->physical extent conversion but before
writeback completes to the associated extent. While this should be a
rare occurrence in production environments due to typical writeback
ordering and such, it is not guaranteed in all cases until data
extents are initialized as unwritten (or otherwise zeroed) before
they are written.

Add a test that performs selective writeback ordering to reproduce
stale data exposure after a crash. Note that this test currently
fails on XFS.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/536 [new file with mode: 0755]
tests/generic/536.out [new file with mode: 0644]
tests/generic/group