From: Darrick J. Wong Date: Wed, 28 Aug 2019 16:08:09 +0000 (-0400) Subject: xfs: wire up the v5 inumbers ioctl X-Git-Tag: v5.3.0-rc1~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb3dc1416f53990e31052ef695c9abb6a6a0e1b8;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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 */