diff options
author | Abhijith Das <adas@redhat.com> | 2011-02-04 12:40:58 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-02-04 12:40:58 +0100 |
commit | fa920711b4bbb9e61358a7f488f0a645ef221321 (patch) | |
tree | 03ee74b1635783a77ffa0873ee700dc424448927 /quotaio_xfs.h | |
parent | 1be8727ae92a78a5e7fde5ecc6c59740ca2eabe4 (diff) |
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 <jack@suse.cz>
Diffstat (limited to 'quotaio_xfs.h')
-rw-r--r-- | quotaio_xfs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/quotaio_xfs.h b/quotaio_xfs.h index cf89973..54725b0 100644 --- a/quotaio_xfs.h +++ b/quotaio_xfs.h @@ -105,6 +105,15 @@ typedef struct fs_disk_quota { #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. */ #define XFS_QUOTA_UDQ_ACCT (1<<0) /* user quota accounting */ |