From cb3dc1416f53990e31052ef695c9abb6a6a0e1b8 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 28 Aug 2019 12:08:09 -0400 Subject: [PATCH] xfs: wire up the v5 inumbers ioctl Source kernel commit: fba9760a433634067ec01e7d4cdd581d17b149e0 Wire up the v5 INUMBERS ioctl. Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster Signed-off-by: Eric Sandeen --- libxfs/xfs_fs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index c06c0602a..e41a3de7c 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -499,6 +499,13 @@ struct xfs_bulkstat_req { #define XFS_BULKSTAT_REQ_SIZE(nr) (sizeof(struct xfs_bulkstat_req) + \ (nr) * sizeof(struct xfs_bulkstat)) +struct xfs_inumbers_req { + struct xfs_bulk_ireq hdr; + struct xfs_inumbers inumbers[]; +}; +#define XFS_INUMBERS_REQ_SIZE(nr) (sizeof(struct xfs_inumbers_req) + \ + (nr) * sizeof(struct xfs_inumbers)) + /* * Error injection. */ @@ -802,6 +809,7 @@ struct xfs_scrub_metadata { /* #define XFS_IOC_FSGEOMETRY _IOR ('X', 126, struct xfs_fsop_geom_v5) */ #define XFS_IOC_FSGEOMETRY XFS_IOC_FSGEOMETRY_V4 #define XFS_IOC_BULKSTAT _IOR ('X', 127, struct xfs_bulkstat_req) +#define XFS_IOC_INUMBERS _IOR ('X', 128, struct xfs_inumbers_req) /* XFS_IOC_GETFSUUID ---------- deprecated 140 */ -- 2.47.3