Subject: Re: bug#6131: [PATCH]: fiemap support for efficient sparse file copy

From: Pádraig Brady <[email-masked]>
Date: Fri, 21 May 2010 14:46:57 +0100

On 21/05/10 13:59, Jim Meyering wrote:
> Pádraig Brady wrote:
>> There is the unlikely combination of ext4 without fiemap support I think?
>> If so then that dependency is worth a comment.
> 
> I don't know off hand.
> Is there a shell-level way to test for that?

One could check if <linux/fiemap.h> is available, but that would add
the dependency on kernel-headers being installed.
Alternatively one could skip the test on non linux and linux < 2.6.27
But requiring ext4 is probably good enough to limit this to systems
that actually do have fiemap available. Adding a comment about linux >= 2.6.27
might help us quickly eliminate false positives that are reported.

cheers.
Pádraig.