mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/189: noattr2 invalid for CRC enabled filesystems
Version 5 filesystems always have attr2 format enabled, and it cannot be turned off via the noattr2 mount option. As such, attempts to mount with noattr2 will be rejected and this causes cascading failures within the test. Hence detect if we've created a CRC enabled filesystem, and if this is the case _notrun the test. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
763b46f3be
commit
97a665b5fc
+10
@@ -196,6 +196,16 @@ _require_attr_v1()
|
||||
|| _notrun "attr v1 not supported on $SCRATCH_DEV"
|
||||
}
|
||||
|
||||
# check if we support the noattr2 mount option
|
||||
_require_noattr2()
|
||||
{
|
||||
_scratch_mkfs_xfs > /dev/null 2>&1 \
|
||||
|| _fail "_scratch_mkfs_xfs failed on $SCRATCH_DEV"
|
||||
_mount -o noattr2 $SCRATCH_DEV > /dev/null 2>&1 \
|
||||
|| _notrun "noattr2 mount option not supported on $SCRATCH_DEV"
|
||||
_scratch_unmount
|
||||
}
|
||||
|
||||
# getfattr -R returns info in readdir order which varies from fs to fs.
|
||||
# This sorts the output by filename
|
||||
_sort_getfattr_output()
|
||||
|
||||
Reference in New Issue
Block a user