Lines Matching refs:storage
8 #include "index-storage.h"
9 #include "mail-storage-service.h"
11 #include "fail-mail-storage.h"
12 #include "shared-storage.h"
20 struct shared_storage *storage;
23 pool = pool_alloconly_create("shared storage", 1024);
24 storage = p_new(pool, struct shared_storage, 1);
25 storage->storage = shared_storage;
26 storage->storage.pool = pool;
27 return &storage->storage;
34 struct shared_storage *storage = SHARED_STORAGE(_storage);
46 storage->location = p_strdup(_storage->pool, ns->set->location);
47 storage->unexpanded_location =
49 storage->storage_class_name = p_strdup(_storage->pool, driver);
53 *error_r = t_strconcat("Unknown shared storage driver: ",
63 storage->ns_prefix_pattern = p_strdup(_storage->pool, wildcardp);
66 for (p = storage->ns_prefix_pattern; *p != '\0'; p++) {
106 get_nonexistent_user_location(struct shared_storage *storage,
109 /* user wasn't found. we'll still need to create the storage
111 str_append(location, storage->storage_class_name);
115 str_append(location, storage->storage.user->set->base_dir);
136 struct mail_storage *_storage = (*_ns)->storage;
138 struct shared_storage *storage = SHARED_STORAGE(_storage);
149 p = storage->ns_prefix_pattern;
190 storage->ns_prefix_pattern, *_name);
237 if (var_expand(prefix, storage->ns_prefix_pattern, tab, &error) <= 0) {
240 storage->ns_prefix_pattern, error);
267 } else if (!var_has_key(storage->location, 'h', "home")) {
282 var_expand(location, storage->location, tab, &error) <= 0) {
285 storage->location, error);
304 get_nonexistent_user_location(storage, userdomain, location);
325 p_strdup(user->pool, storage->unexpanded_location);
345 /* this user doesn't have a usable storage */
355 /* flags are unset if we were using "auto" storage */