Re: [PATCH -next] nilfs2: support STATX_DIOALIGN for statx file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.





[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux