Blame SOURCES/xfsprogs-4.5.0-fix-headers.patch

9bf599
xfs.h: define XFS_IOC_FREEZE even if FIFREEZE is defined
9bf599
9bf599
And the same for XFS_IOC_THAW.  Just because we now have a common
9bf599
version of the ioctl we still need to provide the old name for it
9bf599
for anyone using those.
9bf599
9bf599
Signed-off-by: Christoph Hellwig <hch@lst.de>
9bf599
9bf599
linux.h: include <linux/fs.h>
9bf599
9bf599
To reliably prevent the redefinition of struct fsxattr.
9bf599
9bf599
Signed-off-by: Christoph Hellwig <hch@lst.de>
9bf599
Reported-by: Jeffrey Bastian <jbastian@redhat.com>
9bf599
9bf599
---
9bf599
 libxfs/xfs_fs.h | 8 ++------
9bf599
 2 files changed, 3 insertions(+), 6 deletions(-)
9bf599
9bf599
9bf599
diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h
9bf599
index b9622ba..1f17e1c 100644
9bf599
--- a/libxfs/xfs_fs.h
9bf599
+++ b/libxfs/xfs_fs.h
9bf599
@@ -542,12 +542,8 @@ typedef struct xfs_swapext
9bf599
 #define XFS_IOC_ERROR_CLEARALL	     _IOW ('X', 117, struct xfs_error_injection)
9bf599
 /*	XFS_IOC_ATTRCTL_BY_HANDLE -- deprecated 118	 */
9bf599
 
9bf599
-/*	XFS_IOC_FREEZE		  -- FIFREEZE   119	 */
9bf599
-/*	XFS_IOC_THAW		  -- FITHAW     120	 */
9bf599
-#ifndef FIFREEZE
9bf599
-#define XFS_IOC_FREEZE		     _IOWR('X', 119, int)
9bf599
-#define XFS_IOC_THAW		     _IOWR('X', 120, int)
9bf599
-#endif
9bf599
+#define XFS_IOC_FREEZE		     _IOWR('X', 119, int)	/* aka FIFREEZE */
9bf599
+#define XFS_IOC_THAW		     _IOWR('X', 120, int)	/* aka FITHAW */
9bf599
 
9bf599
 #define XFS_IOC_FSSETDM_BY_HANDLE    _IOW ('X', 121, struct xfs_fsop_setdm_handlereq)
9bf599
 #define XFS_IOC_ATTRLIST_BY_HANDLE   _IOW ('X', 122, struct xfs_fsop_attrlist_handlereq)
9bf599
9bf599
diff --git a/include/linux.h b/include/linux.h
9bf599
index cc0f70c..0c616f4 100644
9bf599
--- a/include/linux.h
9bf599
+++ b/include/linux.h
9bf599
@@ -32,6 +32,7 @@
9bf599
 #include <stdio.h>
9bf599
 #include <asm/types.h>
9bf599
 #include <mntent.h>
9bf599
+#include <linux/fs.h> /* fsxattr defintion for new kernels */
9bf599
 
9bf599
 static __inline__ int xfsctl(const char *path, int fd, int cmd, void *p)
9bf599
 {