as mentioned here, BTRFS uses functionality that is incompatible w/ sync_file_range when running in its default mode, but CoW can be disabled using chattr +C <file> on these systems, OR we can dynamically detect BTRFS and always use a full fsync instead of sync_file_range.
as mentioned here, BTRFS uses functionality that is incompatible w/ sync_file_range when running in its default mode, but CoW can be disabled using
chattr +C <file>on these systems, OR we can dynamically detect BTRFS and always use a full fsync instead of sync_file_range.