From: Timo Sirainen Date: Tue, 12 Aug 2008 22:48:11 +0000 (-0400) Subject: quota-fs: compile fix for previous changes. X-Git-Tag: 1.2.alpha1~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7ec3797312157be2b01925c95aff9599d04ef42;p=thirdparty%2Fdovecot%2Fcore.git quota-fs: compile fix for previous changes. --HG-- branch : HEAD --- diff --git a/src/plugins/quota/quota-fs.c b/src/plugins/quota/quota-fs.c index 2e18fe2276..7988c78117 100644 --- a/src/plugins/quota/quota-fs.c +++ b/src/plugins/quota/quota-fs.c @@ -251,7 +251,7 @@ static void fs_quota_storage_added(struct quota *quota, 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_root *root, bool bytes, 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_root *root, bool bytes, *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_root *root, bool bytes, 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 quota_root *_root, struct mailbox *box) 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"); }