dovecot-1.2: quota-fs: compile fix for previous changes.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Aug 13 01:48:20 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/ceca59aaae89
changeset: 8091:ceca59aaae89
user: Timo Sirainen <tss at iki.fi>
date: Tue Aug 12 18:48:11 2008 -0400
description:
quota-fs: compile fix for previous changes.
diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
src/plugins/quota/quota-fs.c | 12 ++++++------
diffs (56 lines):
diff -r 75b1f16cba72 -r ceca59aaae89 src/plugins/quota/quota-fs.c
--- a/src/plugins/quota/quota-fs.c Tue Aug 12 18:20:46 2008 -0400
+++ b/src/plugins/quota/quota-fs.c Tue Aug 12 18:48:11 2008 -0400
@@ -251,7 +251,7 @@ static void fs_quota_storage_added(struc
dir = mail_storage_get_mailbox_path(storage, "", &is_file);
mount = fs_quota_mountpoint_get(dir);
if (mount != NULL) {
- if (quota->debug) {
+ if (quota->set->debug) {
i_info("fs quota add storage dir = %s", dir);
i_info("fs quota block device = %s", mount->device_path);
i_info("fs quota mount point = %s", mount->mount_path);
@@ -310,7 +310,7 @@ static int do_rquota(struct fs_quota_roo
host = t_strdup_until(mount->device_path, path);
path++;
- if (root->root.quota->debug) {
+ if (root->root.quota->set->debug) {
i_info("quota-fs: host=%s, path=%s, uid=%s",
host, path, dec2str(root->uid));
}
@@ -366,7 +366,7 @@ static int do_rquota(struct fs_quota_roo
*limit_r = rq->rq_fsoftlimit;
}
}
- if (root->root.quota->debug) {
+ if (root->root.quota->set->debug) {
i_info("quota-fs: uid=%s, value=%llu, "
"limit=%llu, active=%d", dec2str(root->uid),
(unsigned long long)*value_r,
@@ -375,7 +375,7 @@ static int do_rquota(struct fs_quota_roo
return 1;
}
case Q_NOQUOTA:
- if (root->root.quota->debug) {
+ if (root->root.quota->set->debug) {
i_info("quota-fs: uid=%s, limit=unlimited",
dec2str(root->uid));
}
@@ -609,14 +609,14 @@ static bool fs_quota_match_box(struct qu
return FALSE;
}
if (stat(root->storage_mount_path, &rst) < 0) {
- if (_root->quota->debug) {
+ if (_root->quota->set->debug) {
i_error("stat(%s) failed: %m",
root->storage_mount_path);
}
return FALSE;
}
match = CMP_DEV_T(mst.st_dev, rst.st_dev);
- if (_root->quota->debug) {
+ if (_root->quota->set->debug) {
i_info("box=%s mount=%s match=%s", mailbox_path,
root->storage_mount_path, match ? "yes" : "no");
}
More information about the dovecot-cvs
mailing list