]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: btrfs/011 improvement for compressed filesystems
authorStefan Behrens <sbehrens@giantdisaster.de>
Fri, 13 Sep 2013 10:27:21 +0000 (10:27 +0000)
committerRich Johnston <rjohnston@gulag1.americas.sgi.com>
Mon, 14 Oct 2013 13:30:50 +0000 (08:30 -0500)
commite15d36e67c9bd5f6cafe48f6fc3cef9bb8685e80
tree01c6a1ff1ee39e193ec1e2e4be8af275ae9dc3fc
parenta4d5b247b565307c7da05d7bf784f093ba3f5dad
xfstests: btrfs/011 improvement for compressed filesystems

Josef noticed that using /dev/zero to generate most of the test
data doesn't work if someone overrides the mount options to
enable compression. The test that performs a cancellation failed
because the replace operation was already finished when the
cancel request was executed.

Since /dev/urandom is too slow to generate multiple GB, the
way how the filesystem data is generated is completely changed
with this patch. Now /dev/urandom is used to generate one 1MB
file and this file is copied up to 2048 times. /dev/zero is no
longer used.

The runtime of the test is about the same as before. Compression
works now, online duplication will again cause issues, but
we don't have online duplication today.

Reported-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Reviewed-by: Jan Schmidt <list.xfs@jan-o-sch.net>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
tests/btrfs/011