]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
240: only run when the file system block size is larger than the disk sector size
authorJeff Moyer <jmoyer@redhat.com>
Fri, 11 Feb 2011 20:20:02 +0000 (15:20 -0500)
committerChristoph Hellwig <hch@lst.de>
Sun, 13 Feb 2011 11:59:20 +0000 (12:59 +0100)
commit2dbd21dc152d89715263990c881025f17c7b632e
treed95c0bfc1e119f4dd2e9f06a7027cd48cbc0b26f
parent8a6c926b0c638bb63df0611edd9a2132a7cf587f
240: only run when the file system block size is larger than the disk sector size

This test really wants to test partial file-system block I/Os.  Thus, if
the device has a 4K sector size, and the file system has a 4K block
size, there's really no point in running the test.  In the attached
patch, I check that the fs block size is larger than the device's
logical block size, which should cover a 4k device block size with a 16k
fs block size.

I verified that the patched test does not run on my 4k sector device
with a 4k file system.  I also verified that it continues to run on a
512 byte logical sector device with a 4k file system block size.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
240