Just a small comment, but regardless of that. Reviewed-by: John Garry <john.g.garry@xxxxxxxxxx>
+ + md_dev=$(readlink /dev/md/blktests_md | sed 's|\.\./||') + md_dev_sysfs="/sys/devices/virtual/block/${md_dev}" + md_sysfs_atomic_unit_max_bytes=$(< "${md_dev_sysfs}"/queue/atomic_write_unit_max_bytes) + test_desc="TEST 12 RAID $raid_level - Verify sysfs_atomic_unit_max_bytes <= chunk size " + if [ "$md_chunk_size" -le "$md_sysfs_atomic_unit_max_bytes" ]
you should also test that md_sysfs_atomic_unit_max_bytes is evenly divisible into md_chunk_size