Searched refs:quota (Results 1 - 16 of 16) sorted by relevance

/dovecot/src/lib-dict-backend/
H A Ddict.conf28 pattern = priv/quota/bytes
29 table = quota
36 pattern = priv/quota/count
37 table = quota
/dovecot/src/plugins/quota/
H A Dquota-fs.h10 /* absolute path to avoid confusion with ./quota.h */
11 # include "/usr/include/quota.h" /* NetBSD with libquota */
15 # include <sys/quota.h> /* Linux, HP-UX */
19 # include <ufs/ufs/quota.h> /* BSDs */
21 # include <jfs/quota.h> /* AIX */
48 # undef FS_QUOTA_LINUX /* obtained because we also have <sys/quota.h> */
H A Dquota-plugin.h20 struct quota *quota; member in struct:quota_user
H A Dquota.c14 #include "quota-private.h"
15 #include "quota-fs.h"
24 #define QUOTA_LIMIT_SET_PATH DICT_PATH_PRIVATE"quota/limit/"
32 struct quota *quota; member in struct:quota_root_iter
204 /* <backend>[:<quota root name>[:<backend args>]] */
216 *error_r = t_strdup_printf("Unknown quota backend: %s",
287 return "Blocked by an ongoing background quota calculation";
289 return "Internal quota calculation error";
295 return qt->quota
395 quota_root_init(struct quota_root_settings *root_set, struct quota *quota, struct quota_root **root_r, const char **error_r) argument
434 struct quota *quota; local
465 struct quota *quota = *_quota; local
538 quota_is_duplicate_namespace(struct quota *quota, struct mail_namespace *ns) argument
584 quota_add_user_namespace(struct quota *quota, struct mail_namespace *ns) argument
617 struct quota *quota; local
726 struct quota *quota; local
1273 quota_over_flag_check_startup(struct quota *quota) argument
[all...]
H A Dquota-private.h6 #include "quota.h"
12 struct quota { struct
43 /* Don't include this mailbox in quota */
65 void (*namespace_added)(struct quota *quota,
85 /* quota backends equal if backend1.name == backend2.name */
91 /* Unique quota root name. */
93 /* Name in settings, e.g. "quota", "quota2", .. */
105 /* If user is under quota before saving a mail, allow the last mail to
106 bring the user over quota b
120 struct quota *quota; member in struct:quota_root
161 struct quota *quota; member in struct:quota_transaction_context
[all...]
H A Dquota.h15 struct quota;
34 /* We may want to recalculate quota because we weren't able to call
36 recalculated unless the backend does the quota tracking
39 /* doveadm quota recalc called - make sure the quota is correct */
48 /* Mail size is larger than even the maximum allowed quota. */
50 /* Blocked by ongoing background quota calculation. */
56 /* Ongoing background quota calculation */
77 /* Add a new rule too the quota root. Returns 0 if ok, -1 if rule is invalid. */
80 /* Add a new warning rule for the quota roo
[all...]
H A Ddoveadm-quota.c5 #include "quota-plugin.h"
6 #include "quota-private.h"
40 i_error("Failed to get quota resource %s: %s",
65 array_foreach(&quser->quota->roots, root)
113 trans.quota = quser->quota;
116 array_foreach(&quser->quota->roots, root) {
119 i_error("Recalculating quota failed: %s", error);
138 .name = "quota get",
146 .name = "quota recal
[all...]
H A Dquota-imapc.c9 #include "quota-private.h"
77 /* we'll never try to enforce the quota - it's just a lot of
102 struct quota *quota; local
106 quota = quota_get_mail_user_quota(storage->storage.user);
107 i_assert(quota != NULL);
109 /* find the quota root that is being refreshed */
110 array_foreach(&quota->roots, rootp) {
225 i_warning("quota: Namespace '%s' is not imapc, "
226 "skipping for imapc quota",
249 imapc_quota_refresh_update(struct quota *quota, struct imapc_quota_refresh *refresh) argument
276 imapc_quota_refresh_deinit(struct quota *quota, struct imapc_quota_refresh *refresh, bool success) argument
414 imapc_quota_namespace_added(struct quota *quota, struct mail_namespace *ns) argument
[all...]
H A Dquota-storage.c11 #include "quota-private.h"
12 #include "quota-plugin.h"
68 mailbox_set_critical(box, "quota: %s", internal_err);
92 physical size and do the quota freeing later when the message was
94 if (quser->quota->set->vsizes)
106 /* we're running dsync. if this brings the quota below
107 a negative quota warning, don't execute it, because
221 array_foreach(&quser->quota->roots, rootp) {
227 /* Both/neither have this quota */
229 /* Destination mailbox has a quota tha
525 quota_roots_flush(struct quota *quota) argument
631 struct quota *quota; local
661 quota_find_root_for_ns(struct quota *quota, struct mail_namespace *ns) argument
678 struct quota *quota = NULL; local
753 struct quota *quota; local
[all...]
H A Dquota-dict.c9 #include "quota-private.h"
12 #define DICT_QUOTA_CURRENT_PATH DICT_PATH_PRIVATE"quota/"
64 username = _root->quota->user->username;
66 if (_root->quota->set->debug) {
67 i_debug("dict quota: user=%s, uri=%s, noenforcing=%d",
75 set.base_dir = _root->quota->user->set->base_dir;
76 if (mail_user_get_home(_root->quota->user, &set.home_dir) <= 0)
122 trigger otherwise increases quota without deleting it.
124 quota usage among other data in the same row, which
133 if (root->root.quota
[all...]
H A Dquota-fs.c3 /* Only for reporting filesystem quota */
10 #include "quota-private.h"
11 #include "quota-fs.h"
44 /* Very old sys/quota.h doesn't define _LINUX_QUOTA_VERSION at all, which means
45 it supports only v1 quota. However, new sys/quota.h (glibc 2.25) removes
188 i_error("quota-fs: %s is not a valid NFS device path",
203 fs_quota_root_find_mountpoint(struct quota *quota, argument
210 roots = array_get(&quota
264 fs_quota_add_missing_mounts(struct quota *quota) argument
286 fs_quota_namespace_added(struct quota *quota, struct mail_namespace *ns) argument
[all...]
H A Dquota-count.c6 #include "quota-private.h"
42 /* mailbox not included in quota */
47 mailbox_set_reason(box, "quota count");
49 /* quota doesn't exist for this mailbox/storage */
51 } else if (mailbox_get_metadata(box, root->quota->set->vsizes ?
66 "Ongoing quota calculation blocked getting size of %s: %s",
76 *bytes += root->quota->set->vsizes ?
132 namespaces = array_get(&iter->root->quota->namespaces, &count);
241 if (!root->quota->set->vsizes) {
242 *error_r = "quota coun
[all...]
H A Dquota-maildir.c14 #include "quota-private.h"
173 /* mailbox not included in quota */
254 namespaces = array_get(&root->root.quota->namespaces, &count);
388 namespaces = array_get(&root->root.quota->namespaces, &count);
494 /* no quota lines. rebuild it. */
515 /* we're over quota. don't trust these values if the file
599 /* we'll need to recalculate the quota */
660 i_warning("quota: Namespace '%s' is not Maildir, "
661 "skipping for Maildir++ quota",
710 /* no quota */
831 maildir_quota_namespace_added(struct quota *quota, struct mail_namespace *ns) argument
[all...]
H A Dquota-dirsize.c9 #include "quota-private.h"
169 namespaces = array_get(&root->quota->namespaces, &count);
/dovecot/src/auth/
H A Duserdb-vpopmail.c59 string_t *quota; local
71 quota = t_str_new(128);
72 if (var_expand(quota, template, tab, error_r) < 0)
75 *quota_r = str_c(quota);
87 const char *quota, *error; local
134 vpw->pw_shell, &quota, &error) < 0) {
147 if (*quota != '\0') {
150 quota);
/dovecot/src/plugins/trash/
H A Dtrash-plugin.c9 #include "quota-private.h"
10 #include "quota-plugin.h"
107 struct trash_user *tuser = TRASH_USER_CONTEXT_REQUIRE(ctx->quota->user);
181 if (ctx->quota->user->mail_debug) {
189 if (ctx->quota->user->mail_debug) {
198 /* user is over quota. drop the over-bytes first. */
204 /* user is over quota. drop the over-count first. */
236 ctx->quota->user->mail_debug)
238 "quota, won't even try to handle");
260 "Allocating %"PRIuUOFF_T" bytes would exceed quota", siz
[all...]

Completed in 25 milliseconds