Skip to content

Commit e3c2b04

Browse files
author
Darrick J. Wong
committed
xfs: restore old ioctl definitions
These ioctl definitions in xfs_fs.h are part of the userspace ABI and were mistakenly removed during the 5.13 merge window. Fixes: 9fefd5d ("xfs: convert to fileattr") Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Brian Foster <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent 16c9de5 commit e3c2b04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/xfs/libxfs/xfs_fs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,8 @@ struct xfs_scrub_metadata {
770770
/*
771771
* ioctl commands that are used by Linux filesystems
772772
*/
773+
#define XFS_IOC_GETXFLAGS FS_IOC_GETFLAGS
774+
#define XFS_IOC_SETXFLAGS FS_IOC_SETFLAGS
773775
#define XFS_IOC_GETVERSION FS_IOC_GETVERSION
774776

775777
/*
@@ -780,6 +782,8 @@ struct xfs_scrub_metadata {
780782
#define XFS_IOC_ALLOCSP _IOW ('X', 10, struct xfs_flock64)
781783
#define XFS_IOC_FREESP _IOW ('X', 11, struct xfs_flock64)
782784
#define XFS_IOC_DIOINFO _IOR ('X', 30, struct dioattr)
785+
#define XFS_IOC_FSGETXATTR FS_IOC_FSGETXATTR
786+
#define XFS_IOC_FSSETXATTR FS_IOC_FSSETXATTR
783787
#define XFS_IOC_ALLOCSP64 _IOW ('X', 36, struct xfs_flock64)
784788
#define XFS_IOC_FREESP64 _IOW ('X', 37, struct xfs_flock64)
785789
#define XFS_IOC_GETBMAP _IOWR('X', 38, struct getbmap)

0 commit comments

Comments
 (0)