On Thu, Apr 2, 2009 at 9:09 AM, Andrew Morton <akpm@linux-foundation.org> wrote:
MythTV actually uses fdatasync, not fsync (or at least that's what it
did last time I looked at the source). Not sure how the behavior of
fdatasync compares to sync_file_range.
Either way - forcing the data to be synced to disk a couple times
every second is a hack and causes fragmentation in filesystems without
delayed allocation. Fragmentation really goes up if you are recording
multiple shows at once.
-Dave
--