Re: NFSD server side COPY with sparse files?

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

 



Hi Dan,

On 11/20/24 6:18 PM, Dan Shelton wrote:
> Hello!
> 
> What will a NFSD server side COPY do with sparse files? Are holes preserved?

The Linux NFSD implementation uses the copy_file_range syscall to do the copy, which could potentially result in holes getting expanded (note that this is true for local filesystems calling copy_file_range as well).

I'm sure something could be rigged up on the server side using SEEK_HOLE / SEEK_DATA to call copy in a loop (as suggested by the "Notes" section of the man page) to preserve holes, but that's not how the current implementation works.

I hope this helps!
Anna


> 
> Dan





[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