]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs.h: require transparent LFS for all users
authorFelix Janda <felix.janda@posteo.de>
Tue, 1 Nov 2016 01:38:42 +0000 (12:38 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 1 Nov 2016 01:38:42 +0000 (12:38 +1100)
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 <felix.janda@posteo.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/xfs.h

index c878b2470cec07bab234927c4d31f3cd0285971e..e1d2c1cba7569e8bc56731b1fc8fc1a5d4508daf 100644 (file)
 # 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
  */