i_free(root);
}
-static struct fs_quota_mountpoint *fs_quota_mountpoint_get(const char *dir)
+static struct fs_quota_mountpoint *fs_quota_mountpoint_get(const char *dir, struct event *event)
{
struct fs_quota_mountpoint *mount;
struct mountpoint point;
if (mount_type_is_nfs(mount)) {
if (strchr(mount->device_path, ':') == NULL) {
- e_error(quota_backend_fs.event,
- "%s is not a valid NFS device path",
+ e_error(event, "%s is not a valid NFS device path",
mount->device_path);
fs_quota_mountpoint_free(mount);
return NULL;
static void
fs_quota_mount_init(struct fs_quota_root *root, const char *dir)
{
- struct fs_quota_mountpoint *mount = fs_quota_mountpoint_get(dir);
+ struct event *event = root->root.quota->event;
+ struct fs_quota_mountpoint *mount = fs_quota_mountpoint_get(dir, event);
if (mount == NULL)
return;
if (mount->initialized) {