From fa920711b4bbb9e61358a7f488f0a645ef221321 Mon Sep 17 00:00:00 2001 From: Abhijith Das Date: Fri, 4 Feb 2011 12:40:58 +0100 Subject: Implement quotacheck for GFS2 Although GFS2 maintains quota as metadata, it sometimes might need to check quota usage (most notably when quota is enabled for the first time). So add support for GFS2 in quotacheck. Signed-off-by: Jan Kara --- quotaio_xfs.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'quotaio_xfs.h') diff --git a/quotaio_xfs.h b/quotaio_xfs.h index cf89973..54725b0 100644 --- a/quotaio_xfs.h +++ b/quotaio_xfs.h @@ -104,6 +104,15 @@ typedef struct fs_disk_quota { #define FS_DQ_RTBTIMER (1<<8) #define FS_DQ_TIMER_MASK (FS_DQ_BTIMER | FS_DQ_ITIMER | FS_DQ_RTBTIMER) +/* + * Accounting values. These can only be set for filesystem with + * non-transactional quotas that require quotacheck(8) in userspace. + */ +#define FS_DQ_BCOUNT (1<<12) +#define FS_DQ_ICOUNT (1<<13) +#define FS_DQ_RTBCOUNT (1<<14) +#define FS_DQ_ACCT_MASK (FS_DQ_BCOUNT | FS_DQ_ICOUNT | FS_DQ_RTBCOUNT) + /* * Various flags related to quotactl(2). Only relevant to XFS filesystems. */ -- cgit v1.2.3