xfs
[Top] [All Lists]

[PATCH xfsprogs 13/14] xfs.h: require transparent LFS

To: xfs@xxxxxxxxxxx
Subject: [PATCH xfsprogs 13/14] xfs.h: require transparent LFS
From: Felix Janda <felix.janda@xxxxxxxxx>
Date: Sun, 7 Aug 2016 07:43:42 +0200
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <cover.1470555003.git.felix.janda@xxxxxxxxx>
References: <cover.1470555003.git.felix.janda@xxxxxxxxx>
Since our interfaces depend on the consistent use of a 64bit offset
type, we 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@xxxxxxxxx>
---
 include/xfs.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/xfs.h b/include/xfs.h
index 7bed957..37c95fe 100644
--- a/include/xfs.h
+++ b/include/xfs.h
@@ -47,6 +47,8 @@
 # error unknown platform... have fun porting!
 #endif
 
+extern int xfs_assert_largefile[sizeof(off_t)-8];
+
 /*
  * sparse kernel source annotations
  */
-- 
2.7.3

<Prev in Thread] Current Thread [Next in Thread>