On Wed, Aug 28, 2024 at 09:12:50AM +0800, Hongbo Li wrote: >> I checked the STATX_DIOALIGN specification while looking at the >> implementation of other file systems, and I thought that if DIO >> support is incomplete, the dio_xx_align member should be set to 0. >> >> Due to the nature of NILFS2 as a log-structured file system, DIO >> writes fall back to buffered io. (DIO reads are supported) >> > That's really a question. How to handle the asymmetric situation of > O_DIRECT read and write? > > The STATX_DIOALIGN specification does not define this case. Yes, it needs separate reporting for the read alignment. I actually wrote patches for that a few days ago, but never got around to testing them. I'll send out what I have.