From 5d5e3d57605e77708685e8d20a40fe86891db299 Mon Sep 17 00:00:00 2001 From: Chandra Seetharaman Date: Tue, 6 Aug 2013 17:27:08 -0500 Subject: xfs: Add support for the Q_XGETQSTATV For XFS, add support for Q_XGETQSTATV quotactl command. Signed-off-by: Chandra Seetharaman Reviewed-by: Rich Johnston Signed-off-by: Ben Myers --- fs/xfs/xfs_quotaops.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'fs/xfs/xfs_quotaops.c') diff --git a/fs/xfs/xfs_quotaops.c b/fs/xfs/xfs_quotaops.c index 446a2fc9825e..1326d81596c2 100644 --- a/fs/xfs/xfs_quotaops.c +++ b/fs/xfs/xfs_quotaops.c @@ -55,6 +55,18 @@ xfs_fs_get_xstate( return -xfs_qm_scall_getqstat(mp, fqs); } +STATIC int +xfs_fs_get_xstatev( + struct super_block *sb, + struct fs_quota_statv *fqs) +{ + struct xfs_mount *mp = XFS_M(sb); + + if (!XFS_IS_QUOTA_RUNNING(mp)) + return -ENOSYS; + return -xfs_qm_scall_getqstatv(mp, fqs); +} + STATIC int xfs_fs_set_xstate( struct super_block *sb, @@ -135,6 +147,7 @@ xfs_fs_set_dqblk( } const struct quotactl_ops xfs_quotactl_operations = { + .get_xstatev = xfs_fs_get_xstatev, .get_xstate = xfs_fs_get_xstate, .set_xstate = xfs_fs_set_xstate, .get_dqblk = xfs_fs_get_dqblk, -- cgit v1.2.3