On 7/11/25 2:57 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> Reviewed-by: John Garry <john.g.garry@xxxxxxxxxx> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> ---
Looks good. Alan