quota: Allow each filesystem to specify which quota types it supports
Currently all filesystems supporting VFS quota support user and group quotas. With introduction of project quotas this is going to change so make sure filesystem isn't called for quota type it doesn't support by introduction of a bitmask determining which quota types each filesystem supports. Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
@@ -56,6 +56,11 @@ enum quota_type {
|
||||
PRJQUOTA = 2, /* element used for project quotas */
|
||||
};
|
||||
|
||||
/* Masks for quota types when used as a bitmask */
|
||||
#define QTYPE_MASK_USR (1 << USRQUOTA)
|
||||
#define QTYPE_MASK_GRP (1 << GRPQUOTA)
|
||||
#define QTYPE_MASK_PRJ (1 << PRJQUOTA)
|
||||
|
||||
typedef __kernel_uid32_t qid_t; /* Type in which we store ids in memory */
|
||||
typedef long long qsize_t; /* Type in which we store sizes */
|
||||
|
||||
|
Reference in New Issue
Block a user