1884d179dSJan Kara #ifndef _LINUX_QUOTAIO_V1_H 2884d179dSJan Kara #define _LINUX_QUOTAIO_V1_H 3884d179dSJan Kara 4884d179dSJan Kara #include <linux/types.h> 5884d179dSJan Kara 6884d179dSJan Kara /* 7884d179dSJan Kara * The following constants define the amount of time given a user 8884d179dSJan Kara * before the soft limits are treated as hard limits (usually resulting 9884d179dSJan Kara * in an allocation failure). The timer is started when the user crosses 10884d179dSJan Kara * their soft limit, it is reset when they go below their soft limit. 11884d179dSJan Kara */ 12884d179dSJan Kara #define MAX_IQ_TIME 604800 /* (7*24*60*60) 1 week */ 13884d179dSJan Kara #define MAX_DQ_TIME 604800 /* (7*24*60*60) 1 week */ 14884d179dSJan Kara 15884d179dSJan Kara /* 16884d179dSJan Kara * The following structure defines the format of the disk quota file 17884d179dSJan Kara * (as it appears on disk) - the file is an array of these structures 18884d179dSJan Kara * indexed by user or group number. 19884d179dSJan Kara */ 20884d179dSJan Kara struct v1_disk_dqblk { 21884d179dSJan Kara __u32 dqb_bhardlimit; /* absolute limit on disk blks alloc */ 22884d179dSJan Kara __u32 dqb_bsoftlimit; /* preferred limit on disk blks */ 23884d179dSJan Kara __u32 dqb_curblocks; /* current block count */ 24884d179dSJan Kara __u32 dqb_ihardlimit; /* absolute limit on allocated inodes */ 25884d179dSJan Kara __u32 dqb_isoftlimit; /* preferred inode limit */ 26884d179dSJan Kara __u32 dqb_curinodes; /* current # allocated inodes */ 27884d179dSJan Kara time_t dqb_btime; /* time limit for excessive disk use */ 28884d179dSJan Kara time_t dqb_itime; /* time limit for excessive inode use */ 29884d179dSJan Kara }; 30884d179dSJan Kara 31884d179dSJan Kara #define v1_dqoff(UID) ((loff_t)((UID) * sizeof (struct v1_disk_dqblk))) 32884d179dSJan Kara 33884d179dSJan Kara #endif /* _LINUX_QUOTAIO_V1_H */ 34