generic/223: make sure all files get created on the data device
authorDarrick J. Wong <djwong@kernel.org>
Wed, 21 Apr 2021 00:22:25 +0000 (17:22 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 25 Apr 2021 05:16:56 +0000 (13:16 +0800)
commit982941cf89f5bc51581459fd3467a6cbdc54999d
tree770b13fdc1ebef1ad5c8ff9e14e11f565e1882e8
parentace9db40f92920d9a7767197d8967d6d01df3eb9
generic/223: make sure all files get created on the data device

This test formats filesystems with various stripe alignments, then
checks that data file allocations are actually aligned to those stripe
geometries.  If this test is run on an XFS filesystem with a realtime
volume and RTINHERIT is set on the root dir, the test will fail because
all new files will be created as realtime files, and realtime
allocations are not subject to data device stripe alignments.  Fix this
by clearing rtinherit on the root dir.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/223