xfs/053: test for stale data exposure via falloc/writeback interaction

XFS buffered I/O writeback has a subtle race condition that leads to
stale data exposure if the filesystem happens to crash after delayed
allocation blocks are converted on disk and before data is written back
to said blocks.

Use file allocation commands to attempt to reproduce a related, but
slightly different variant of this problem. The associated falloc
commands can lead to partial writeback that converts an extent larger
than the range affected by falloc. If the filesystem crashes after the
extent conversion but before all other cached data is written to the
extent, stale data can be exposed.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Brian Foster
2014-10-14 22:59:39 +11:00
committed by Dave Chinner
parent edaea8a075
commit cf1438248c
3 changed files with 112 additions and 0 deletions
+1
View File
@@ -49,6 +49,7 @@
050 quota auto quick
051 auto log metadata
052 quota db auto quick
053 auto quick rw
054 quota auto quick
055 dump ioctl remote tape
056 dump ioctl auto quick