This simply defines the Q_XGETQUOTA2 quotactl in xfsprogs. Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> --- include/xqm.h | 1 + quota/linux.c | 2 ++ quota/quota.h | 2 ++ 3 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/xqm.h b/include/xqm.h index 47f58a0..2cf4311 100644 --- a/include/xqm.h +++ b/include/xqm.h @@ -32,6 +32,7 @@ #define Q_XGETQSTAT XQM_CMD(5) /* get quota subsystem status */ #define Q_XQUOTARM XQM_CMD(6) /* free disk space used by dquots */ #define Q_XQUOTASYNC XQM_CMD(7) /* delalloc flush, updates dquots */ +#define Q_XGETQUOTA2 XQM_CMD(9) /* get disk limits and usage */ /* * fs_disk_quota structure: diff --git a/quota/linux.c b/quota/linux.c index 8a73922..84ac674 100644 --- a/quota/linux.c +++ b/quota/linux.c @@ -49,6 +49,8 @@ xcommand_to_qcommand( return Q_XQUOTAOFF; case XFS_GETQUOTA: return Q_XGETQUOTA; + case XFS_GETQUOTA2: + return Q_XGETQUOTA2; case XFS_SETQLIM: return Q_XSETQLIM; case XFS_GETQSTAT: diff --git a/quota/quota.h b/quota/quota.h index 416f335..8b80029 100644 --- a/quota/quota.h +++ b/quota/quota.h @@ -43,6 +43,8 @@ enum { XFS_GETQSTAT, /* get quota subsystem status */ XFS_QUOTARM, /* free disk space used by dquots */ XFS_QSYNC, /* flush delayed allocate space */ + XFS_GETQSTATV, /* newer version of quota stats */ + XFS_GETQUOTA2, /* get disk limits and usage */ }; /* -- 1.7.1 _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs