| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCHv2 xfsprogs 13/14] xfs.h: require transparent LFS |
| From: | Felix Janda <felix.janda@xxxxxxxxx> |
| Date: | Tue, 9 Aug 2016 20:03:20 +0200 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20160809074138.GO25647@xxxxxxxxxxxxx> |
| References: | <cover.1470555003.git.felix.janda@xxxxxxxxx> <3be2b10b0037406374a415fda2318cbf95a67546.1470555003.git.felix.janda@xxxxxxxxx> <20160809074138.GO25647@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.6.1 (2016-04-27) |
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@xxxxxxxxx> --- Christoph Hellwig wrote: > > +extern int xfs_assert_largefile[sizeof(off_t)-8]; > > Please add a comment on why we have this declaration, otherwise this > looks fine to me: > > Reviewed-by: Christoph Hellwig <hch@xxxxxx> A simple comment is added. --- include/xfs.h | 5 ++ 1 file changed, 5 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,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 */ -- 2.7.3 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH xfsprogs 11/14] replace statvfs64 by equivalent statvfs, Felix Janda |
|---|---|
| Next by Date: | [PATCH xfsprogs] fadvise.c: replace posix_fadvise64 by equivalent posix_fadvise, Felix Janda |
| Previous by Thread: | Re: [PATCH xfsprogs 13/14] xfs.h: require transparent LFS, Christoph Hellwig |
| Next by Thread: | Re: [PATCHv2 xfsprogs 13/14] xfs.h: require transparent LFS, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |