]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/482: use thin volume as data device
authorBrian Foster <bfoster@redhat.com>
Thu, 28 Feb 2019 14:41:28 +0000 (09:41 -0500)
committerEryu Guan <guaneryu@gmail.com>
Sat, 2 Mar 2019 11:39:15 +0000 (19:39 +0800)
commit65cc9a235919f3fd5ac77f51478b62b7f0dff252
treea2f3fa65f153764fcf2ac7905c3f1be54cfac206
parentde928c8e880e62ceb7e4d4b6047213bd0048945c
generic/482: use thin volume as data device

The dm-log-writes replay mechanism issues discards to provide
zeroing functionality to prevent out-of-order replay issues. These
discards don't always result in zeroing bevavior, however, depending
on the underlying physical device. In turn, this causes test
failures on XFS v5 filesystems that enforce metadata log recovery
ordering if the filesystem ends up with stale data from the future
with respect to the active log at a particular recovery point.

To ensure reliable discard zeroing behavior, use a thinly
provisioned volume as the data device instead of using the scratch
device directly. This slows the test down slightly, but provides
reliable functional behavior at a reduced cost from active snapshot
management or forced zeroing.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/482