diff --git a/common/xfs b/common/xfs index 51cd02be..10ecda7c 100644 --- a/common/xfs +++ b/common/xfs @@ -26,6 +26,17 @@ _have_xfs() { _have_fs xfs && _have_program mkfs.xfs } +_test_dev_suits_xfs() { + local logical_block_size + + logical_block_size=$(_test_dev_queue_get logical_block_size) + if ((logical_block_size > 32768 )); then + SKIP_REASONS+=("sector size ${logical_block_size} is larger than max XFS sector size 32768") + return 1 + fi + return 0 +} + _xfs_mkfs_and_mount() { local bdev=$1 local mount_dir=$2 diff --git a/tests/nvme/035 b/tests/nvme/035 index 9f84ced5..71039adf 100755 --- a/tests/nvme/035 +++ b/tests/nvme/035 @@ -19,6 +19,7 @@ requires() { device_requires() { _require_test_dev_is_not_nvme_multipath _require_test_dev_size "${NVME_IMG_SIZE}" + _test_dev_suits_xfs } set_conditions() {