search for: fs_quota_root

Displaying 2 results from an estimated 2 matches for "fs_quota_root".

2006 Jun 20
1
Group-based filesystem quota
Hello. After using Dovecot for over a year, I have just started experimenting with the filesystem quotas, and I have a suggestion for improvement. On my mail server, I use group-based quotas, and would like to have Dovecot be able to report these quotas. It should be simple to implement, requiring only changes to the quota-fs.c file of the quota plugin. Simply changing USRQUOTA to
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...t uid; + gid_t gid; struct fs_quota_mountpoint *mount; }; @@ -73,6 +74,7 @@ root->root.name = i_strdup(name); root->root.v = quota_backend_fs.v; root->uid = geteuid(); + root->gid = getegid(); return &root->root; } @@ -177,7 +179,16 @@ static const char *const * fs_quota_root_get_resources(struct quota_root *root __attr_unused__) { - static const char *resources[] = { QUOTA_NAME_STORAGE, NULL }; + const char *mail; + mail = getenv("MAIL"); + static const char *resources[] = { + QUOTA_NAME_STORAGE, + NULL, + NULL + }; + if (strstr(mail, "maildir")...