Re: [f2fs-dev] [PATCH] f2fs: do not set STATX_DIOALIGN if dio is not supported

From: Eric Biggers
Date: Mon Sep 23 2024 - 03:43:43 EST


On Mon, Sep 23, 2024 at 12:37:32AM -0600, Wu Bo via Linux-f2fs-devel wrote:
> Therefore, if the filesystem does not support DIO, it should not set
> the STATX_DIOALIGN flag.

No, that's incorrect. STATX_DIOALIGN supports reporting that DIO is
unsupported, via the alignments being 0. See the statx man page.

- Eric