]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
add a new min_dio_alignment helper
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Aug 2024 04:52:11 +0000 (06:52 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 16 Aug 2024 11:50:42 +0000 (19:50 +0800)
commit0e5f196d0a6a680945d594977d2ef43f4bc52b84
tree4f93b7e30fd3199952cd7d9eacc8909e1bf7148d
parent873e36c9c3cc2481396b83d6028b07c69e45a9c3
add a new min_dio_alignment helper

Add a new C program to find the minimum direct I/O alignment.  This
uses the statx stx_dio_offset_align field if provided, then falls
back to the BLKSSZGET ioctl for block backed file systems and finally
the page size.  It is intended as a more capable replacement for the
_min_dio_alignment bash helper.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
.gitignore
src/Makefile
src/min_dio_alignment.c [new file with mode: 0644]