Re: Supporting FALLOC_FL_WRITE_ZEROES in NFS4.2 with WRITE_SAME?

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

 



Hi Takeshi,

On 3/18/25 11:00 AM, Takeshi Nishimura wrote:
> Zhang Yi <yi.zhang@xxxxxxxxxx> wrote in linux-fsdevel@xxxxxxxxxxxxxxx:
>> Add support for FALLOC_FL_WRITE_ZEROES. This first allocates blocks as
>> unwritten, then issues a zero command outside of the running journal
>> handle, and finally converts them to a written state.
> 
> Picking up where the NFS4.2 WRITE_SAME discussion stalled:
> FALLOC_FL_WRITE_ZEROES is coming, and IMO the only way to implement
> that for NFS is via WRITE_SAME.
> 
> How to proceed?

I've been working on patches for implementing FALLOC_FL_ZERO_RANGE support
in the NFS client using WRITE_SAME. I've also been experimenting with adding
an ioctl for the generic pattern writing part. I'm expecting to talk about
what I have for ioctl API at LSF next week, and I'll post an initial round
of patches shortly after.

I do still need to think through any edge cases and write tests for
pynfs and fstests before anything can be merged.

I hope this helps,
Anna




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux