Blame SOURCES/xfsprogs-revert-off64_t.patch

4a5a34
Revert, because off64_t isn't available w/o LFS defines;
4a5a34
upstream this needs to be handled seamlessly but we don't
4a5a34
want to change existing RHEL behavior for code that includes
4a5a34
xfs.h
4a5a34
4a5a34
commit cb898f157f8410a03cf5f3400baa1df9e5eecd33
4a5a34
Author: Felix Janda <felix.janda@posteo.de>
4a5a34
Date:   Fri Feb 5 08:34:06 2016 +1100
4a5a34
4a5a34
    linux.h: Use off64_t instead of loff_t
4a5a34
    
4a5a34
    These are equivalent on glibc, while musl does not know loff_t.
4a5a34
    
4a5a34
    In the long run, it would be preferable to enable transparent LFS so
4a5a34
    that off64_t could be replaced by off_t.
4a5a34
    
4a5a34
    Signed-off-by: Felix Janda <felix.janda@posteo.de>
4a5a34
    Reviewed-by: Christoph Hellwig <hch@lst.de>
4a5a34
    Signed-off-by: Dave Chinner <david@fromorbit.com>
4a5a34
4a5a34
diff --git a/include/linux.h b/include/linux.h
4a5a34
index 674717c..a7d2f85 100644
4a5a34
--- a/include/linux.h
4a5a34
+++ b/include/linux.h
4a5a34
@@ -141,7 +141,7 @@ platform_discard_blocks(int fd, uint64_t start, uint64_t len)
4a5a34
 #define EFSCORRUPTED	EUCLEAN	/* Filesystem is corrupted */
4a5a34
 #define EFSBADCRC	EBADMSG	/* Bad CRC detected */
4a5a34
 
4a5a34
-typedef off64_t		xfs_off_t;
4a5a34
+typedef loff_t		xfs_off_t;
4a5a34
 typedef __uint64_t	xfs_ino_t;
4a5a34
 typedef __uint32_t	xfs_dev_t;
4a5a34
 typedef __int64_t	xfs_daddr_t;