Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
xfs_quota.h File Reference

Go to the source code of this file.

Data Structures

struct  xfs_disk_dquot
 
struct  xfs_dqblk
 
struct  xfs_dq_logformat
 
struct  xfs_qoff_logformat
 

Macros

#define XFS_DQUOT_MAGIC   0x4451 /* 'DQ' */
 
#define XFS_DQUOT_VERSION   (u_int8_t)0x01 /* latest version number */
 
#define XFS_DQ_USER   0x0001 /* a user quota */
 
#define XFS_DQ_PROJ   0x0002 /* project quota */
 
#define XFS_DQ_GROUP   0x0004 /* a group quota */
 
#define XFS_DQ_DIRTY   0x0008 /* dquot is dirty */
 
#define XFS_DQ_FREEING   0x0010 /* dquot is beeing torn down */
 
#define XFS_DQ_ALLTYPES   (XFS_DQ_USER|XFS_DQ_PROJ|XFS_DQ_GROUP)
 
#define XFS_DQ_FLAGS
 
#define XFS_DQUOT_LOGRES(mp)   (sizeof(xfs_disk_dquot_t) * 3)
 
#define XFS_UQUOTA_ACCT   0x0001 /* user quota accounting ON */
 
#define XFS_UQUOTA_ENFD   0x0002 /* user quota limits enforced */
 
#define XFS_UQUOTA_CHKD   0x0004 /* quotacheck run on usr quotas */
 
#define XFS_PQUOTA_ACCT   0x0008 /* project quota accounting ON */
 
#define XFS_OQUOTA_ENFD   0x0010 /* other (grp/prj) quota limits enforced */
 
#define XFS_OQUOTA_CHKD   0x0020 /* quotacheck run on other (grp/prj) quotas */
 
#define XFS_GQUOTA_ACCT   0x0040 /* group quota accounting ON */
 
#define XFS_ALL_QUOTA_ACCT   (XFS_UQUOTA_ACCT | XFS_GQUOTA_ACCT | XFS_PQUOTA_ACCT)
 
#define XFS_ALL_QUOTA_ENFD   (XFS_UQUOTA_ENFD | XFS_OQUOTA_ENFD)
 
#define XFS_ALL_QUOTA_CHKD   (XFS_UQUOTA_CHKD | XFS_OQUOTA_CHKD)
 
#define XFS_IS_QUOTA_RUNNING(mp)   ((mp)->m_qflags & XFS_ALL_QUOTA_ACCT)
 
#define XFS_IS_UQUOTA_RUNNING(mp)   ((mp)->m_qflags & XFS_UQUOTA_ACCT)
 
#define XFS_IS_PQUOTA_RUNNING(mp)   ((mp)->m_qflags & XFS_PQUOTA_ACCT)
 
#define XFS_IS_GQUOTA_RUNNING(mp)   ((mp)->m_qflags & XFS_GQUOTA_ACCT)
 
#define XFS_IS_UQUOTA_ENFORCED(mp)   ((mp)->m_qflags & XFS_UQUOTA_ENFD)
 
#define XFS_IS_OQUOTA_ENFORCED(mp)   ((mp)->m_qflags & XFS_OQUOTA_ENFD)
 
#define XFS_UQUOTA_ACTIVE   0x0100 /* uquotas are being turned off */
 
#define XFS_PQUOTA_ACTIVE   0x0200 /* pquotas are being turned off */
 
#define XFS_GQUOTA_ACTIVE   0x0400 /* gquotas are being turned off */
 
#define XFS_ALL_QUOTA_ACTIVE   (XFS_UQUOTA_ACTIVE | XFS_PQUOTA_ACTIVE | XFS_GQUOTA_ACTIVE)
 
#define XFS_IS_QUOTA_ON(mp)
 
#define XFS_IS_OQUOTA_ON(mp)
 
#define XFS_IS_UQUOTA_ON(mp)   ((mp)->m_qflags & XFS_UQUOTA_ACTIVE)
 
#define XFS_IS_GQUOTA_ON(mp)   ((mp)->m_qflags & XFS_GQUOTA_ACTIVE)
 
#define XFS_IS_PQUOTA_ON(mp)   ((mp)->m_qflags & XFS_PQUOTA_ACTIVE)
 
#define XFS_QMOPT_DQALLOC   0x0000002 /* alloc dquot ondisk if needed */
 
#define XFS_QMOPT_UQUOTA   0x0000004 /* user dquot requested */
 
#define XFS_QMOPT_PQUOTA   0x0000008 /* project dquot requested */
 
#define XFS_QMOPT_FORCE_RES   0x0000010 /* ignore quota limits */
 
#define XFS_QMOPT_SBVERSION   0x0000040 /* change superblock version num */
 
#define XFS_QMOPT_DOWARN   0x0000400 /* increase warning cnt if needed */
 
#define XFS_QMOPT_DQREPAIR   0x0001000 /* repair dquot if damaged */
 
#define XFS_QMOPT_GQUOTA   0x0002000 /* group dquot requested */
 
#define XFS_QMOPT_ENOSPC   0x0004000 /* enospc instead of edquot (prj) */
 
#define XFS_QMOPT_RES_REGBLKS   0x0010000
 
#define XFS_QMOPT_RES_RTBLKS   0x0020000
 
#define XFS_QMOPT_BCOUNT   0x0040000
 
#define XFS_QMOPT_ICOUNT   0x0080000
 
#define XFS_QMOPT_RTBCOUNT   0x0100000
 
#define XFS_QMOPT_DELBCOUNT   0x0200000
 
#define XFS_QMOPT_DELRTBCOUNT   0x0400000
 
#define XFS_QMOPT_RES_INOS   0x0800000
 
#define XFS_QMOPT_INHERIT   0x1000000
 
#define XFS_TRANS_DQ_RES_BLKS   XFS_QMOPT_RES_REGBLKS
 
#define XFS_TRANS_DQ_RES_RTBLKS   XFS_QMOPT_RES_RTBLKS
 
#define XFS_TRANS_DQ_RES_INOS   XFS_QMOPT_RES_INOS
 
#define XFS_TRANS_DQ_BCOUNT   XFS_QMOPT_BCOUNT
 
#define XFS_TRANS_DQ_DELBCOUNT   XFS_QMOPT_DELBCOUNT
 
#define XFS_TRANS_DQ_ICOUNT   XFS_QMOPT_ICOUNT
 
#define XFS_TRANS_DQ_RTBCOUNT   XFS_QMOPT_RTBCOUNT
 
#define XFS_TRANS_DQ_DELRTBCOUNT   XFS_QMOPT_DELRTBCOUNT
 
#define XFS_QMOPT_QUOTALL   (XFS_QMOPT_UQUOTA | XFS_QMOPT_PQUOTA | XFS_QMOPT_GQUOTA)
 
#define XFS_QMOPT_RESBLK_MASK   (XFS_QMOPT_RES_REGBLKS | XFS_QMOPT_RES_RTBLKS)
 

Typedefs

typedef __uint32_t xfs_dqid_t
 
typedef __uint64_t xfs_qcnt_t
 
typedef __uint16_t xfs_qwarncnt_t
 
typedef struct xfs_disk_dquot xfs_disk_dquot_t
 
typedef struct xfs_dqblk xfs_dqblk_t
 
typedef struct xfs_dq_logformat xfs_dq_logformat_t
 
typedef struct xfs_qoff_logformat xfs_qoff_logformat_t
 

Macro Definition Documentation

#define XFS_ALL_QUOTA_ACCT   (XFS_UQUOTA_ACCT | XFS_GQUOTA_ACCT | XFS_PQUOTA_ACCT)

Definition at line 157 of file xfs_quota.h.

#define XFS_ALL_QUOTA_ACTIVE   (XFS_UQUOTA_ACTIVE | XFS_PQUOTA_ACTIVE | XFS_GQUOTA_ACTIVE)

Definition at line 177 of file xfs_quota.h.

#define XFS_ALL_QUOTA_CHKD   (XFS_UQUOTA_CHKD | XFS_OQUOTA_CHKD)

Definition at line 160 of file xfs_quota.h.

#define XFS_ALL_QUOTA_ENFD   (XFS_UQUOTA_ENFD | XFS_OQUOTA_ENFD)

Definition at line 159 of file xfs_quota.h.

#define XFS_DQ_ALLTYPES   (XFS_DQ_USER|XFS_DQ_PROJ|XFS_DQ_GROUP)

Definition at line 92 of file xfs_quota.h.

#define XFS_DQ_DIRTY   0x0008 /* dquot is dirty */

Definition at line 89 of file xfs_quota.h.

#define XFS_DQ_FLAGS
Value:
{ XFS_DQ_USER, "USER" }, \
{ XFS_DQ_PROJ, "PROJ" }, \
{ XFS_DQ_GROUP, "GROUP" }, \
{ XFS_DQ_DIRTY, "DIRTY" }, \
{ XFS_DQ_FREEING, "FREEING" }

Definition at line 94 of file xfs_quota.h.

#define XFS_DQ_FREEING   0x0010 /* dquot is beeing torn down */

Definition at line 90 of file xfs_quota.h.

#define XFS_DQ_GROUP   0x0004 /* a group quota */

Definition at line 88 of file xfs_quota.h.

#define XFS_DQ_PROJ   0x0002 /* project quota */

Definition at line 87 of file xfs_quota.h.

#define XFS_DQ_USER   0x0001 /* a user quota */

Definition at line 86 of file xfs_quota.h.

#define XFS_DQUOT_LOGRES (   mp)    (sizeof(xfs_disk_dquot_t) * 3)

Definition at line 105 of file xfs_quota.h.

#define XFS_DQUOT_MAGIC   0x4451 /* 'DQ' */

Definition at line 26 of file xfs_quota.h.

#define XFS_DQUOT_VERSION   (u_int8_t)0x01 /* latest version number */

Definition at line 27 of file xfs_quota.h.

#define XFS_GQUOTA_ACCT   0x0040 /* group quota accounting ON */

Definition at line 152 of file xfs_quota.h.

#define XFS_GQUOTA_ACTIVE   0x0400 /* gquotas are being turned off */

Definition at line 176 of file xfs_quota.h.

#define XFS_IS_GQUOTA_ON (   mp)    ((mp)->m_qflags & XFS_GQUOTA_ACTIVE)

Definition at line 190 of file xfs_quota.h.

#define XFS_IS_GQUOTA_RUNNING (   mp)    ((mp)->m_qflags & XFS_GQUOTA_ACCT)

Definition at line 165 of file xfs_quota.h.

#define XFS_IS_OQUOTA_ENFORCED (   mp)    ((mp)->m_qflags & XFS_OQUOTA_ENFD)

Definition at line 167 of file xfs_quota.h.

#define XFS_IS_OQUOTA_ON (   mp)
Value:
((mp)->m_qflags & (XFS_GQUOTA_ACTIVE | \

Definition at line 187 of file xfs_quota.h.

#define XFS_IS_PQUOTA_ON (   mp)    ((mp)->m_qflags & XFS_PQUOTA_ACTIVE)

Definition at line 191 of file xfs_quota.h.

#define XFS_IS_PQUOTA_RUNNING (   mp)    ((mp)->m_qflags & XFS_PQUOTA_ACCT)

Definition at line 164 of file xfs_quota.h.

#define XFS_IS_QUOTA_ON (   mp)
Value:

Definition at line 184 of file xfs_quota.h.

#define XFS_IS_QUOTA_RUNNING (   mp)    ((mp)->m_qflags & XFS_ALL_QUOTA_ACCT)

Definition at line 162 of file xfs_quota.h.

#define XFS_IS_UQUOTA_ENFORCED (   mp)    ((mp)->m_qflags & XFS_UQUOTA_ENFD)

Definition at line 166 of file xfs_quota.h.

#define XFS_IS_UQUOTA_ON (   mp)    ((mp)->m_qflags & XFS_UQUOTA_ACTIVE)

Definition at line 189 of file xfs_quota.h.

#define XFS_IS_UQUOTA_RUNNING (   mp)    ((mp)->m_qflags & XFS_UQUOTA_ACCT)

Definition at line 163 of file xfs_quota.h.

#define XFS_OQUOTA_CHKD   0x0020 /* quotacheck run on other (grp/prj) quotas */

Definition at line 151 of file xfs_quota.h.

#define XFS_OQUOTA_ENFD   0x0010 /* other (grp/prj) quota limits enforced */

Definition at line 150 of file xfs_quota.h.

#define XFS_PQUOTA_ACCT   0x0008 /* project quota accounting ON */

Definition at line 149 of file xfs_quota.h.

#define XFS_PQUOTA_ACTIVE   0x0200 /* pquotas are being turned off */

Definition at line 175 of file xfs_quota.h.

#define XFS_QMOPT_BCOUNT   0x0040000

Definition at line 214 of file xfs_quota.h.

#define XFS_QMOPT_DELBCOUNT   0x0200000

Definition at line 217 of file xfs_quota.h.

#define XFS_QMOPT_DELRTBCOUNT   0x0400000

Definition at line 218 of file xfs_quota.h.

#define XFS_QMOPT_DOWARN   0x0000400 /* increase warning cnt if needed */

Definition at line 203 of file xfs_quota.h.

#define XFS_QMOPT_DQALLOC   0x0000002 /* alloc dquot ondisk if needed */

Definition at line 198 of file xfs_quota.h.

#define XFS_QMOPT_DQREPAIR   0x0001000 /* repair dquot if damaged */

Definition at line 204 of file xfs_quota.h.

#define XFS_QMOPT_ENOSPC   0x0004000 /* enospc instead of edquot (prj) */

Definition at line 206 of file xfs_quota.h.

#define XFS_QMOPT_FORCE_RES   0x0000010 /* ignore quota limits */

Definition at line 201 of file xfs_quota.h.

#define XFS_QMOPT_GQUOTA   0x0002000 /* group dquot requested */

Definition at line 205 of file xfs_quota.h.

#define XFS_QMOPT_ICOUNT   0x0080000

Definition at line 215 of file xfs_quota.h.

#define XFS_QMOPT_INHERIT   0x1000000

Definition at line 224 of file xfs_quota.h.

#define XFS_QMOPT_PQUOTA   0x0000008 /* project dquot requested */

Definition at line 200 of file xfs_quota.h.

#define XFS_QMOPT_QUOTALL   (XFS_QMOPT_UQUOTA | XFS_QMOPT_PQUOTA | XFS_QMOPT_GQUOTA)

Definition at line 239 of file xfs_quota.h.

#define XFS_QMOPT_RES_INOS   0x0800000

Definition at line 219 of file xfs_quota.h.

#define XFS_QMOPT_RES_REGBLKS   0x0010000

Definition at line 212 of file xfs_quota.h.

#define XFS_QMOPT_RES_RTBLKS   0x0020000

Definition at line 213 of file xfs_quota.h.

#define XFS_QMOPT_RESBLK_MASK   (XFS_QMOPT_RES_REGBLKS | XFS_QMOPT_RES_RTBLKS)

Definition at line 241 of file xfs_quota.h.

#define XFS_QMOPT_RTBCOUNT   0x0100000

Definition at line 216 of file xfs_quota.h.

#define XFS_QMOPT_SBVERSION   0x0000040 /* change superblock version num */

Definition at line 202 of file xfs_quota.h.

#define XFS_QMOPT_UQUOTA   0x0000004 /* user dquot requested */

Definition at line 199 of file xfs_quota.h.

#define XFS_TRANS_DQ_BCOUNT   XFS_QMOPT_BCOUNT

Definition at line 232 of file xfs_quota.h.

#define XFS_TRANS_DQ_DELBCOUNT   XFS_QMOPT_DELBCOUNT

Definition at line 233 of file xfs_quota.h.

#define XFS_TRANS_DQ_DELRTBCOUNT   XFS_QMOPT_DELRTBCOUNT

Definition at line 236 of file xfs_quota.h.

#define XFS_TRANS_DQ_ICOUNT   XFS_QMOPT_ICOUNT

Definition at line 234 of file xfs_quota.h.

#define XFS_TRANS_DQ_RES_BLKS   XFS_QMOPT_RES_REGBLKS

Definition at line 229 of file xfs_quota.h.

#define XFS_TRANS_DQ_RES_INOS   XFS_QMOPT_RES_INOS

Definition at line 231 of file xfs_quota.h.

#define XFS_TRANS_DQ_RES_RTBLKS   XFS_QMOPT_RES_RTBLKS

Definition at line 230 of file xfs_quota.h.

#define XFS_TRANS_DQ_RTBCOUNT   XFS_QMOPT_RTBCOUNT

Definition at line 235 of file xfs_quota.h.

#define XFS_UQUOTA_ACCT   0x0001 /* user quota accounting ON */

Definition at line 146 of file xfs_quota.h.

#define XFS_UQUOTA_ACTIVE   0x0100 /* uquotas are being turned off */

Definition at line 174 of file xfs_quota.h.

#define XFS_UQUOTA_CHKD   0x0004 /* quotacheck run on usr quotas */

Definition at line 148 of file xfs_quota.h.

#define XFS_UQUOTA_ENFD   0x0002 /* user quota limits enforced */

Definition at line 147 of file xfs_quota.h.

Typedef Documentation

typedef __uint32_t xfs_dqid_t

Definition at line 33 of file xfs_quota.h.

typedef __uint64_t xfs_qcnt_t

Definition at line 40 of file xfs_quota.h.

typedef __uint16_t xfs_qwarncnt_t

Definition at line 41 of file xfs_quota.h.