generic/{094,225}: skip test when the xfs rt extent size is larger than 1 fsb
authorDarrick J. Wong <djwong@kernel.org>
Wed, 14 Apr 2021 01:05:20 +0000 (18:05 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 18 Apr 2021 12:53:53 +0000 (20:53 +0800)
commit97dd2c3a6a0dbb5de38210348e8ffa79d1b11582
treea0c890de3810f9f49f24e6cfa8454ede6ec7a8f1
parenta2330d65ff55893907d63cda7d2ce0aedfb8e6bb
generic/{094,225}: skip test when the xfs rt extent size is larger than 1 fsb

These two tests call various fallocate modes on a file and compare the
FIEMAP output to some golden output.  Unfortunately, the golden output
doesn't take into account the possibility that (on XFS) the files could be
created on a realtime volume with a large rt extent size set.

Under such a configuration, fpunch operations that are aligned to the fs
block size but not the rt extent size simply result in those blocks
being set to unwritten status.  Unfortunately, the test expects holes
and fails.  Therefore, detect the situation and skip the tests.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc
tests/generic/094
tests/generic/225