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);
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));
}
*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,
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));
}
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");
}