[Bug 8918] Use fiemap to quickly detect zero ranges of source file

samba-bugs at samba.org samba-bugs at samba.org
Tue May 8 04:01:14 MDT 2012


--- Comment #2 from Theodore Ts'o <tytso at mit.edu> 2012-05-08 10:01:13 UTC ---
Using FIEMAP has some real potential problems if the file was just recently
written (and has blocks which were recently written, and where their final
location on disk has not been determined yet).   You can work around this using
the explicitly or implicitly forcing an fsync if this case is found, but
supporting SEEK_HOLE/SEEK_DATA avoids this problem.  The tradeoff is that only
the very latest kernels support SEEK_HOLE/SEEK_DATA.

Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the rsync mailing list