From: Felix Janda Date: Tue, 1 Nov 2016 01:38:42 +0000 (+1100) Subject: xfs.h: require transparent LFS for all users X-Git-Tag: v4.9.0-rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fda99a0c2970f7da2661118b438e64dec1751b4;p=thirdparty%2Fxfsprogs-dev.git xfs.h: require transparent LFS for all users Since our interfaces depend on the consistent use of a 64bit offset type, force downstreams to use transparent LFS (_FILE_OFFSET_BITS=64), so that it becomes impossible for them to use 32bit interfaces. Signed-off-by: Felix Janda Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- diff --git a/include/xfs.h b/include/xfs.h index c878b2470..e1d2c1cba 100644 --- a/include/xfs.h +++ b/include/xfs.h @@ -47,6 +47,11 @@ # error unknown platform... have fun porting! #endif +/* + * make sure that any user of the xfs headers has a 64bit off_t type + */ +extern int xfs_assert_largefile[sizeof(off_t)-8]; + /* * sparse kernel source annotations */