]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
ocfs2/reflink: fix file block size reporting
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 5 Jan 2017 01:04:55 +0000 (17:04 -0800)
committerEryu Guan <eguan@redhat.com>
Sun, 15 Jan 2017 05:56:45 +0000 (13:56 +0800)
commit3547db8e8440568d974b00495ab2e15dcce4faec
tree2633a9e88600229ad34734131e7ae33f76d44dc7
parent0bfb84110bfc9ea85a493f5c17c5d137dce9e3ef
ocfs2/reflink: fix file block size reporting

Some of the reflink tests try to require a specific filesystem block
size so that they can test file block manipulation functions.  That's
straightforward for most filesystems but ocfs2 throws in the additional
twist that data fork block mappings are stored in units of clusters, not
blocks, which causes these reflink tests to fail.

Therefore, introduce a new helper that retrieves the file minimum block
size and adapt the reflink tests to use that instead.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc
tests/generic/205
tests/generic/206
tests/generic/216
tests/generic/217
tests/generic/218
tests/generic/220
tests/generic/222
tests/generic/227
tests/generic/229
tests/generic/238