mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs: New _require_* tests for CRC enabled filesystems
CRCs always enabled 32 bit project inodes and attr2 formats, hence they cannot be turned off. Add new require rules for the tests that require attr and 16 bit project IDs so these tests are avoided on CRC enabled filesystems. Also, add a xfs_db write check so that we can avoid tests that are dependent on xfs_db modifying filesystem structures as they will fail on CRC enabled filessystems right now. This is just temporary until full write xfs_db support is available. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
committed by
Rich Johnston
parent
ea0b6eb8a2
commit
b9b5d74a9e
@@ -1144,13 +1144,18 @@ _require_dm_flakey()
|
||||
fi
|
||||
}
|
||||
|
||||
# this test requires the projid32bit feature to be available in
|
||||
# mkfs.xfs
|
||||
# this test requires the projid32bit feature to be available in mkfs.xfs.
|
||||
#
|
||||
_require_projid32bit()
|
||||
{
|
||||
_scratch_mkfs_xfs_supported -i projid32bit=1 >/dev/null 2>&1 \
|
||||
|| _notrun "mkfs.xfs doesn't have projid32bit feature"
|
||||
}
|
||||
|
||||
_require_projid16bit()
|
||||
{
|
||||
_scratch_mkfs_xfs_supported -i projid32bit=0 >/dev/null 2>&1 \
|
||||
|| _notrun "mkfs.xfs doesn't have projid32bit feature"
|
||||
|| _notrun "16 bit project IDs not supported on $SCRATCH_DEV"
|
||||
}
|
||||
|
||||
# this test requires the crc feature to be available in mkfs.xfs
|
||||
|
||||
Reference in New Issue
Block a user