]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota-fs: compile fix for previous changes.
authorTimo Sirainen <tss@iki.fi>
Tue, 12 Aug 2008 22:48:11 +0000 (18:48 -0400)
committerTimo Sirainen <tss@iki.fi>
Tue, 12 Aug 2008 22:48:11 +0000 (18:48 -0400)
--HG--
branch : HEAD

src/plugins/quota/quota-fs.c

index 2e18fe2276818b10b6e4ca17deac721cafb3431e..7988c78117e3be4eb88b6070efde4dbfb688ab3e 100644 (file)
@@ -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");
        }