[LTP] [PATCH v2 3/4] syscalls/statx11: Add basic test for STATX_DIOALIGN on blockdev
Eric Biggers
ebiggers@kernel.org
Mon Apr 3 19:04:42 CEST 2023
On Mon, Apr 03, 2023 at 06:44:35PM +0800, Yang Xu wrote:
> + TST_ASSERT_ULONG(sys_bdev_dma_path, buf.stx_dio_mem_align - 1);
> + TST_ASSERT_ULONG(sys_bdev_lgs_path, buf.stx_dio_offset_align);
This test is tightly coupled to the kernel's current DIO restrictions on block
devices. These changed in v6.0, and they are subject to further change in the
future.
I guess that is fine for now because STATX_DIOALIGN is only in v6.1 and later
anyway. But, please leave a super clear comment that documents the assumptions
this test is making.
- Eric
More information about the ltp
mailing list