Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6203:d93098194ed4 HEAD
inode_per_mail is now a parameter. We don't use it automatically.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 07 Aug 2007 01:51:50 +0300 |
parents | 1b01ff0180a5 |
children | 8ab01c7b2927 |
files | src/plugins/quota/quota-fs.c |
diffstat | 1 files changed, 3 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota-fs.c Tue Aug 07 01:47:35 2007 +0300 +++ b/src/plugins/quota/quota-fs.c Tue Aug 07 01:51:50 2007 +0300 @@ -95,6 +95,8 @@ root->group_disabled = TRUE; else if (strcmp(*tmp, "group") == 0) root->user_disabled = TRUE; + else if (strcmp(*tmp, "inode_per_mail") == 0) + root->inode_per_mail = TRUE; else if (strncmp(*tmp, "mount=", 6) == 0) { i_free(root->storage_mount_path); root->storage_mount_path = i_strdup(*tmp + 6); @@ -188,7 +190,7 @@ struct quota_root *const *roots; const char *dir; unsigned int i, count; - bool is_file, inode_per_mail; + bool is_file; dir = mail_storage_get_mailbox_path(storage, "", &is_file); mount = fs_quota_mountpoint_get(dir); @@ -213,14 +215,7 @@ i_error("open(%s) failed: %m", mount->path); } #endif - - /* FIXME: pretty ugly to hardcode these */ - inode_per_mail = - strcmp(storage->name, "maildir") == 0 || - strcmp(storage->name, "cydir") == 0; - root->mount = mount; - root->inode_per_mail = inode_per_mail; /* if there are more unused quota roots, copy this mount to them */ roots = array_get("a->roots, &count); @@ -229,7 +224,6 @@ if (QUOTA_ROOT_MATCH(root, mount) && root->mount == NULL) { mount->refcount++; root->mount = mount; - root->inode_per_mail = inode_per_mail; } } }