mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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>
This commit is contained in:
committed by
Eryu Guan
parent
ace9db40f9
commit
982941cf89
@@ -43,6 +43,11 @@ for SUNIT_K in 8 16 32 64 128; do
|
||||
_scratch_mkfs_geom $SUNIT_BYTES 4 $BLOCKSIZE >> $seqres.full 2>&1
|
||||
_scratch_mount
|
||||
|
||||
# This test checks for stripe alignments of space allocations on the
|
||||
# filesystem. Make sure all files get created on the main device,
|
||||
# which for XFS means no rt files.
|
||||
test "$FSTYP" = "xfs" && $XFS_IO_PROG -c 'chattr -t' $SCRATCH_MNT
|
||||
|
||||
for SIZE_MULT in 1 2 8 64 256; do
|
||||
let SIZE=$SIZE_MULT*$SUNIT_BYTES
|
||||
|
||||
|
||||
Reference in New Issue
Block a user