Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
quota.h File Reference
#include <linux/errno.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  if_dqblk
 
struct  if_dqinfo
 

Macros

#define __DQUOT_VERSION__   "dquot_6.5.2"
 
#define MAXQUOTAS   2
 
#define USRQUOTA   0 /* element used for user quotas */
 
#define GRPQUOTA   1 /* element used for group quotas */
 
#define INITQFNAMES
 
#define SUBCMDMASK   0x00ff
 
#define SUBCMDSHIFT   8
 
#define QCMD(cmd, type)   (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK))
 
#define Q_SYNC   0x800001 /* sync disk copy of a filesystems quotas */
 
#define Q_QUOTAON   0x800002 /* turn quotas on */
 
#define Q_QUOTAOFF   0x800003 /* turn quotas off */
 
#define Q_GETFMT   0x800004 /* get quota format used on given filesystem */
 
#define Q_GETINFO   0x800005 /* get information about quota files */
 
#define Q_SETINFO   0x800006 /* set information about quota files */
 
#define Q_GETQUOTA   0x800007 /* get user quota structure */
 
#define Q_SETQUOTA   0x800008 /* set user quota structure */
 
#define QFMT_VFS_OLD   1
 
#define QFMT_VFS_V0   2
 
#define QFMT_OCFS2   3
 
#define QFMT_VFS_V1   4
 
#define QIF_DQBLKSIZE_BITS   10
 
#define QIF_DQBLKSIZE   (1 << QIF_DQBLKSIZE_BITS)
 
#define QIF_BLIMITS   (1 << QIF_BLIMITS_B)
 
#define QIF_SPACE   (1 << QIF_SPACE_B)
 
#define QIF_ILIMITS   (1 << QIF_ILIMITS_B)
 
#define QIF_INODES   (1 << QIF_INODES_B)
 
#define QIF_BTIME   (1 << QIF_BTIME_B)
 
#define QIF_ITIME   (1 << QIF_ITIME_B)
 
#define QIF_LIMITS   (QIF_BLIMITS | QIF_ILIMITS)
 
#define QIF_USAGE   (QIF_SPACE | QIF_INODES)
 
#define QIF_TIMES   (QIF_BTIME | QIF_ITIME)
 
#define QIF_ALL   (QIF_LIMITS | QIF_USAGE | QIF_TIMES)
 
#define IIF_BGRACE   1
 
#define IIF_IGRACE   2
 
#define IIF_FLAGS   4
 
#define IIF_ALL   (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)
 
#define QUOTA_NL_NOWARN   0
 
#define QUOTA_NL_IHARDWARN   1 /* Inode hardlimit reached */
 
#define QUOTA_NL_ISOFTLONGWARN   2 /* Inode grace time expired */
 
#define QUOTA_NL_ISOFTWARN   3 /* Inode softlimit reached */
 
#define QUOTA_NL_BHARDWARN   4 /* Block hardlimit reached */
 
#define QUOTA_NL_BSOFTLONGWARN   5 /* Block grace time expired */
 
#define QUOTA_NL_BSOFTWARN   6 /* Block softlimit reached */
 
#define QUOTA_NL_IHARDBELOW   7 /* Usage got below inode hardlimit */
 
#define QUOTA_NL_ISOFTBELOW   8 /* Usage got below inode softlimit */
 
#define QUOTA_NL_BHARDBELOW   9 /* Usage got below block hardlimit */
 
#define QUOTA_NL_BSOFTBELOW   10 /* Usage got below block softlimit */
 
#define QUOTA_NL_C_MAX   (__QUOTA_NL_C_MAX - 1)
 
#define QUOTA_NL_A_MAX   (__QUOTA_NL_A_MAX - 1)
 

Enumerations

enum  {
  QIF_BLIMITS_B = 0, QIF_SPACE_B, QIF_ILIMITS_B, QIF_INODES_B,
  QIF_BTIME_B, QIF_ITIME_B
}
 
enum  { QUOTA_NL_C_UNSPEC, QUOTA_NL_C_WARNING, __QUOTA_NL_C_MAX }
 
enum  {
  QUOTA_NL_A_UNSPEC, QUOTA_NL_A_QTYPE, QUOTA_NL_A_EXCESS_ID, QUOTA_NL_A_WARNING,
  QUOTA_NL_A_DEV_MAJOR, QUOTA_NL_A_DEV_MINOR, QUOTA_NL_A_CAUSED_ID, __QUOTA_NL_A_MAX
}
 

Macro Definition Documentation

#define __DQUOT_VERSION__   "dquot_6.5.2"

Definition at line 39 of file quota.h.

#define GRPQUOTA   1 /* element used for group quotas */

Definition at line 43 of file quota.h.

#define IIF_ALL   (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)

Definition at line 127 of file quota.h.

#define IIF_BGRACE   1

Definition at line 124 of file quota.h.

#define IIF_FLAGS   4

Definition at line 126 of file quota.h.

#define IIF_IGRACE   2

Definition at line 125 of file quota.h.

#define INITQFNAMES
Value:
{ \
"user", /* USRQUOTA */ \
"group", /* GRPQUOTA */ \
"undefined", \
};

Definition at line 48 of file quota.h.

#define MAXQUOTAS   2

Definition at line 41 of file quota.h.

#define Q_GETFMT   0x800004 /* get quota format used on given filesystem */

Definition at line 67 of file quota.h.

#define Q_GETINFO   0x800005 /* get information about quota files */

Definition at line 68 of file quota.h.

#define Q_GETQUOTA   0x800007 /* get user quota structure */

Definition at line 70 of file quota.h.

#define Q_QUOTAOFF   0x800003 /* turn quotas off */

Definition at line 66 of file quota.h.

#define Q_QUOTAON   0x800002 /* turn quotas on */

Definition at line 65 of file quota.h.

#define Q_SETINFO   0x800006 /* set information about quota files */

Definition at line 69 of file quota.h.

#define Q_SETQUOTA   0x800008 /* set user quota structure */

Definition at line 71 of file quota.h.

#define Q_SYNC   0x800001 /* sync disk copy of a filesystems quotas */

Definition at line 64 of file quota.h.

#define QCMD (   cmd,
  type 
)    (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK))

Definition at line 62 of file quota.h.

#define QFMT_OCFS2   3

Definition at line 76 of file quota.h.

#define QFMT_VFS_OLD   1

Definition at line 74 of file quota.h.

#define QFMT_VFS_V0   2

Definition at line 75 of file quota.h.

#define QFMT_VFS_V1   4

Definition at line 77 of file quota.h.

#define QIF_ALL   (QIF_LIMITS | QIF_USAGE | QIF_TIMES)

Definition at line 106 of file quota.h.

#define QIF_BLIMITS   (1 << QIF_BLIMITS_B)

Definition at line 97 of file quota.h.

#define QIF_BTIME   (1 << QIF_BTIME_B)

Definition at line 101 of file quota.h.

#define QIF_DQBLKSIZE   (1 << QIF_DQBLKSIZE_BITS)

Definition at line 82 of file quota.h.

#define QIF_DQBLKSIZE_BITS   10

Definition at line 81 of file quota.h.

#define QIF_ILIMITS   (1 << QIF_ILIMITS_B)

Definition at line 99 of file quota.h.

#define QIF_INODES   (1 << QIF_INODES_B)

Definition at line 100 of file quota.h.

#define QIF_ITIME   (1 << QIF_ITIME_B)

Definition at line 102 of file quota.h.

#define QIF_LIMITS   (QIF_BLIMITS | QIF_ILIMITS)

Definition at line 103 of file quota.h.

#define QIF_SPACE   (1 << QIF_SPACE_B)

Definition at line 98 of file quota.h.

#define QIF_TIMES   (QIF_BTIME | QIF_ITIME)

Definition at line 105 of file quota.h.

#define QIF_USAGE   (QIF_SPACE | QIF_INODES)

Definition at line 104 of file quota.h.

#define QUOTA_NL_A_MAX   (__QUOTA_NL_A_MAX - 1)

Definition at line 168 of file quota.h.

#define QUOTA_NL_BHARDBELOW   9 /* Usage got below block hardlimit */

Definition at line 148 of file quota.h.

#define QUOTA_NL_BHARDWARN   4 /* Block hardlimit reached */

Definition at line 143 of file quota.h.

#define QUOTA_NL_BSOFTBELOW   10 /* Usage got below block softlimit */

Definition at line 149 of file quota.h.

#define QUOTA_NL_BSOFTLONGWARN   5 /* Block grace time expired */

Definition at line 144 of file quota.h.

#define QUOTA_NL_BSOFTWARN   6 /* Block softlimit reached */

Definition at line 145 of file quota.h.

#define QUOTA_NL_C_MAX   (__QUOTA_NL_C_MAX - 1)

Definition at line 156 of file quota.h.

#define QUOTA_NL_IHARDBELOW   7 /* Usage got below inode hardlimit */

Definition at line 146 of file quota.h.

#define QUOTA_NL_IHARDWARN   1 /* Inode hardlimit reached */

Definition at line 140 of file quota.h.

#define QUOTA_NL_ISOFTBELOW   8 /* Usage got below inode softlimit */

Definition at line 147 of file quota.h.

#define QUOTA_NL_ISOFTLONGWARN   2 /* Inode grace time expired */

Definition at line 141 of file quota.h.

#define QUOTA_NL_ISOFTWARN   3 /* Inode softlimit reached */

Definition at line 142 of file quota.h.

#define QUOTA_NL_NOWARN   0

Definition at line 139 of file quota.h.

#define SUBCMDMASK   0x00ff

Definition at line 60 of file quota.h.

#define SUBCMDSHIFT   8

Definition at line 61 of file quota.h.

#define USRQUOTA   0 /* element used for user quotas */

Definition at line 42 of file quota.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
QIF_BLIMITS_B 
QIF_SPACE_B 
QIF_ILIMITS_B 
QIF_INODES_B 
QIF_BTIME_B 
QIF_ITIME_B 

Definition at line 88 of file quota.h.

anonymous enum
Enumerator:
QUOTA_NL_C_UNSPEC 
QUOTA_NL_C_WARNING 
__QUOTA_NL_C_MAX 

Definition at line 151 of file quota.h.

anonymous enum
Enumerator:
QUOTA_NL_A_UNSPEC 
QUOTA_NL_A_QTYPE 
QUOTA_NL_A_EXCESS_ID 
QUOTA_NL_A_WARNING 
QUOTA_NL_A_DEV_MAJOR 
QUOTA_NL_A_DEV_MINOR 
QUOTA_NL_A_CAUSED_ID 
__QUOTA_NL_A_MAX 

Definition at line 158 of file quota.h.