On 7/8/25 4:38 AM, Shin'ichiro Kawasaki wrote:
From: Alan Adamson <alan.adamson@xxxxxxxxxx> Add a new test (md/002) to verify atomic write support for MD devices (RAID 0, 1, and 10) stacked on top of SCSI devices using scsi_debug with atomic write emulation enabled. This test validates that atomic write sysfs attributes are correctly propagated through MD layers, and that pwritev2() with RWF_ATOMIC behaves as expected on these devices. Specifically, the test checks: - That atomic write attributes in /sys/block/.../queue are consistent between MD and underlying SCSI devices - That atomic write limits are respected in user-space via xfs_io - That statx reports accurate atomic_write_unit_{min,max} values - That invalid writes (too small or too large) fail as expected - That chunk size affects max atomic write limits (for RAID 0/10) Signed-off-by: Alan Adamson <alan.adamson@xxxxxxxxxx> [Shin'ichiro: replaced spaces with tabs, removed group_requires() call] Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> --- Alan, thanks for the patch. I take the liberty to modify your original patch [1] to reflect my review comments. As to the kernel version check, I left it as it is since I can not think of other simple way.
Sorry, I took too long to get back to this. Your changes look good. Alan