build: check for SEEK_HOLE and SEEK_DATA support
authorDavid Disseldorp <ddiss@samba.org>
Thu, 19 Feb 2015 14:53:56 +0000 (15:53 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 9 Mar 2015 20:27:07 +0000 (21:27 +0100)
commit76fff2befe6613416e80f891ccb1521609e19169
tree2969528afb4ff8ebe613404f667dc8d2b35fc069
parentb5a635fb0ab0967e375281dd003cd7eb123f73fd
build: check for SEEK_HOLE and SEEK_DATA support

SEEK_HOLE and SEEK_DATA will be used in the implementation of
FSCTL_QUERY_ALLOCATED_RANGES support.

"SEEK_DATA and SEEK_HOLE are nonstandard extensions also present
 in Solaris, FreeBSD, and DragonFly BSD; they are proposed for
 inclusion in the next POSIX revision (Issue 8)."

With Linux they are supported on:
-  Btrfs (since Linux 3.1)
-  OCFS (since Linux 3.2)
-  XFS (since Linux 3.5)
-  ext4 (since Linux 3.8)
-  tmpfs (since Linux 3.8)

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/wscript