/dovecot/src/lib-fs/ |
H A D | fs-sis-common.h | 4 #include "fs-api-private.h" 8 int fs_sis_path_parse(struct fs *fs, const char *path, 10 void fs_sis_try_unlink_hash_file(struct fs *sis_fs, struct fs_file *super_file);
|
H A D | fs-test.h | 4 #include "fs-api-private.h" 7 struct fs fs; member in struct:test_fs 39 struct test_fs *test_fs_get(struct fs *fs); 40 struct test_fs_file *test_fs_file_get(struct fs *fs, const char *path);
|
H A D | fs-test-async.c | 6 #include "fs-test.h" 9 static void test_fs_async_write(const char *test_name, struct fs *fs) argument 18 file = fs_file_init(fs, "foo", FS_OPEN_MODE_REPLACE | 29 test_file = test_fs_file_get(fs, "foo"); 52 static void test_fs_async_copy(const char *test_name, struct fs *fs) argument 59 src = fs_file_init(fs, "foo", FS_OPEN_MODE_REPLACE); 62 dest = fs_file_init(fs, "bar", FS_OPEN_MODE_REPLACE | 67 test_file = test_fs_file_get(fs, "ba 82 struct fs *fs; local [all...] |
H A D | test-fs-metawrap.c | 6 #include "fs-test.h" 13 struct fs *fs; local 21 test_begin("fs metawrap stat"); 23 if (fs_init("metawrap", "test", &fs_set, &fs, &error) < 0) 27 file = fs_file_init(fs, "foo", FS_OPEN_MODE_READONLY); 29 test_file = test_fs_file_get(fs, "foo"); 44 fs_deinit(&fs); 57 struct fs *fs; local [all...] |
H A D | fs-api.c | 14 #include "istream-fs-stats.h" 15 #include "fs-api-private.h" 20 static ARRAY(const struct fs *) fs_classes; 25 fs_alloc(const struct fs *fs_class, const char *args, 26 const struct fs_settings *set, struct fs **fs_r, const char **error_r) 28 struct fs *fs; local 31 fs = fs_class->v.alloc(); 32 fs->refcount = 1; 33 fs 131 fs_create_event(struct fs *fs, struct event *parent) argument 185 fs_deinit(struct fs **fs) argument 190 fs_ref(struct fs *fs) argument 199 struct fs *fs = *_fs; local 232 fs_get_parent(struct fs *fs) argument 237 fs_get_driver(struct fs *fs) argument 242 fs_get_root_driver(struct fs *fs) argument 249 fs_file_init(struct fs *fs, const char *path, int mode_flags) argument 254 fs_file_init_with_event(struct fs *fs, struct event *event, const char *path, int mode_flags) argument 328 fs_get_properties(struct fs *fs) argument 504 fs_set_verror(struct fs *fs, const char *fmt, va_list args) argument 515 fs_last_error(struct fs *fs) argument 844 fs_wait_async(struct fs *fs) argument 857 fs_switch_ioloop(struct fs *fs) argument 1091 fs_iter_init(struct fs *fs, const char *path, enum fs_iter_flags flags) argument 1097 fs_iter_init_with_event(struct fs *fs, struct event *event, const char *path, enum fs_iter_flags flags) argument 1180 fs_get_stats(struct fs *fs) argument 1185 fs_set_error(struct fs *fs, const char *fmt, ...) argument 1194 fs_set_critical(struct fs *fs, const char *fmt, ...) argument 1205 fs_set_error_async(struct fs *fs) argument [all...] |
H A D | fs-sis-queue.c | 7 #include "fs-sis-common.h" 12 struct fs fs; member in struct:sis_queue_fs 18 struct sis_queue_fs *fs; member in struct:sis_queue_fs_file 21 static struct fs *fs_sis_queue_alloc(void) 23 struct sis_queue_fs *fs; local 25 fs = i_new(struct sis_queue_fs, 1); 26 fs->fs = fs_class_sis_queue; 27 return &fs 34 struct sis_queue_fs *fs = (struct sis_queue_fs *)_fs; local 62 struct sis_queue_fs *fs = (struct sis_queue_fs *)_fs; local 81 struct sis_queue_fs *fs = (struct sis_queue_fs *)_file->fs; local 104 struct sis_queue_fs *fs = (struct sis_queue_fs *)file->file.fs; local [all...] |
H A D | fs-dict.c | 12 #include "fs-api-private.h" 21 struct fs fs; member in struct:dict_fs 39 static struct fs *fs_dict_alloc(void) 41 struct dict_fs *fs; local 43 fs = i_new(struct dict_fs, 1); 44 fs->fs = fs_class_dict; 45 return &fs->fs; 51 struct dict_fs *fs = (struct dict_fs *)_fs; local 85 struct dict_fs *fs = (struct dict_fs *)_fs; local 112 struct dict_fs *fs = (struct dict_fs *)_file->fs; local 148 struct dict_fs *fs = (struct dict_fs *)file->file.fs; local 196 struct dict_fs *fs = (struct dict_fs *)file->file.fs; local 211 struct dict_fs *fs = (struct dict_fs *)_file->fs; local 264 struct dict_fs *fs = (struct dict_fs *)_file->fs; local 289 struct dict_fs *fs = (struct dict_fs *)_iter->fs; local [all...] |
H A D | fs-api.h | 5 struct fs; 11 #define FS_METADATA_INTERNAL_PREFIX ":/X-Dovecot-fs-api-" 20 /* Original path of the file. The path that's eventually visible to a fs 208 struct fs **fs_r, const char **error_r); 212 struct fs **fs_r, const char **error_r); 214 void fs_deinit(struct fs **fs); 216 void fs_ref(struct fs *fs); 217 void fs_unref(struct fs **f [all...] |
H A D | fs-posix.c | 14 #include "fs-api-private.h" 32 struct fs fs; member in struct:posix_fs 67 static struct fs *fs_posix_alloc(void) 69 struct posix_fs *fs; local 71 fs = i_new(struct posix_fs, 1); 72 fs->fs = fs_class_posix; 73 return &fs->fs; 79 struct posix_fs *fs = (struct posix_fs *)_fs; local 130 struct posix_fs *fs = (struct posix_fs *)_fs; local 140 struct posix_fs *fs = (struct posix_fs *)_fs; local 156 fs_posix_get_mode(struct posix_fs *fs, const char *path, mode_t *mode_r) argument 183 fs_posix_mkdir_parents(struct posix_fs *fs, const char *path) argument 210 fs_posix_rmdir_parents(struct posix_fs *fs, const char *path) argument 242 struct posix_fs *fs = (struct posix_fs *)file->file.fs; local 280 struct posix_fs *fs = (struct posix_fs *)file->file.fs; local 320 struct posix_fs *fs = (struct posix_fs *)_file->fs; local 450 struct posix_fs *fs = (struct posix_fs *)file->file.fs; local 472 struct posix_fs *fs = (struct posix_fs *)file->file.fs; local 608 struct posix_fs *fs = (struct posix_fs *)_file->fs; local 715 struct posix_fs *fs = (struct posix_fs *)_src->fs; local 742 struct posix_fs *fs = (struct posix_fs *)_src->fs; local 767 struct posix_fs *fs = (struct posix_fs *)_file->fs; local 796 struct posix_fs *fs = (struct posix_fs *)_iter->fs; local 832 struct posix_fs *fs = (struct posix_fs *)_iter->fs; local [all...] |
H A D | test-fs-posix.c | 5 #include "fs-api.h" 15 const char testdir[] = ".test-fs-posix"; 29 struct fs *fs; local 32 test_begin("test-fs-posix filesystem"); 34 ret = fs_init("posix", t_strdup_printf("prefix=%s/", testdir), &fs_set, &fs, &error); 41 struct fs *ref = fs; 45 test_assert(fs != NULL); 47 test_assert(fs_get_parent(fs) [all...] |
H A D | fs-api-private.h | 4 #include "fs-api.h" 5 #include "fs-wrapper.h" 21 struct fs *(*alloc)(void); 22 int (*init)(struct fs *fs, const char *args, 24 void (*deinit)(struct fs *fs); 26 enum fs_properties (*get_properties)(struct fs *fs); 38 void (*wait_async)(struct fs *f 76 struct fs { struct 106 struct fs *fs; member in struct:fs_file 145 struct fs *fs; member in struct:fs_iter [all...] |
H A D | fs-test.c | 7 #include "fs-test.h" 9 static struct fs *fs_test_alloc(void) 11 struct test_fs *fs; local 13 fs = i_new(struct test_fs, 1); 14 fs->fs = fs_class_test; 15 i_array_init(&fs->iter_files, 32); 16 return &fs->fs; 20 fs_test_init(struct fs *_f 28 struct test_fs *fs = (struct test_fs *)_fs; local 36 struct test_fs *fs = (struct test_fs *)_fs; local 315 struct test_fs *fs = (struct test_fs *)_iter->fs; local 326 struct test_fs *fs = (struct test_fs *)_iter->fs; local 371 test_fs_get(struct fs *fs) argument 380 test_fs_file_get(struct fs *fs, const char *path) argument [all...] |
H A D | fs-randomfail.c | 10 #include "fs-api-private.h" 21 struct fs fs; member in struct:randomfail_fs 41 static struct fs *fs_randomfail_alloc(void) 43 struct randomfail_fs *fs; local 45 fs = i_new(struct randomfail_fs, 1); 46 fs->fs = fs_class_randomfail; 47 return &fs->fs; 64 fs_randomfail_add_probability(struct randomfail_fs *fs, const char *key, const char *value, const char **error_r) argument 95 fs_randomfail_add_probability_range(struct randomfail_fs *fs, const char *key, const char *value, const char **error_r) argument 129 fs_randomfail_parse_params(struct randomfail_fs *fs, const char *params, const char **error_r) argument 164 struct randomfail_fs *fs = (struct randomfail_fs *)_fs; local 200 struct randomfail_fs *fs = (struct randomfail_fs *)_fs; local 239 struct randomfail_fs *fs = (struct randomfail_fs *)_fs; local 277 struct randomfail_fs *fs = (struct randomfail_fs *)_fs; local [all...] |
H A D | fs-sis-common.c | 4 #include "fs-sis-common.h" 8 int fs_sis_path_parse(struct fs *fs, const char *path, argument 25 fs_set_error(fs, "open(%s) failed: " 33 void fs_sis_try_unlink_hash_file(struct fs *sis_fs, struct fs_file *super_file) 44 hash_file = fs_file_init_with_event(super_file->fs, 52 fs_last_error(hash_file->fs));
|
H A D | fs-metawrap.c | 14 #include "fs-api-private.h" 17 struct fs fs; member in struct:metawrap_fs 23 struct metawrap_fs *fs; member in struct:metawrap_fs_file 36 static struct fs *fs_metawrap_alloc(void) 38 struct metawrap_fs *fs; local 40 fs = i_new(struct metawrap_fs, 1); 41 fs->fs = fs_class_metawrap; 42 return &fs 49 struct metawrap_fs *fs = (struct metawrap_fs *)_fs; local 76 struct metawrap_fs *fs = (struct metawrap_fs *)_fs; local 85 const struct metawrap_fs *fs = (const struct metawrap_fs *)_fs; local 110 struct metawrap_fs *fs = (struct metawrap_fs *)_file->fs; local [all...] |
H A D | fs-sis.c | 8 #include "fs-sis-common.h" 14 struct fs fs; member in struct:sis_fs 19 struct sis_fs *fs; member in struct:sis_fs_file 30 static struct fs *fs_sis_alloc(void) 32 struct sis_fs *fs; local 34 fs = i_new(struct sis_fs, 1); 35 fs->fs = fs_class_sis; 36 return &fs 73 struct sis_fs *fs = (struct sis_fs *)_fs; local 91 struct sis_fs *fs = (struct sis_fs *)_file->fs; local [all...] |
H A D | fs-wrapper.h | 4 enum fs_properties fs_wrapper_get_properties(struct fs *fs); 10 void fs_wrapper_wait_async(struct fs *fs);
|
/dovecot/src/plugins/mail-crypt/ |
H A D | fs-crypt.c | 3 #include "fs-crypt-common.c" 6 int fs_crypt_load_keys(struct crypt_fs *fs, const char **error_r) argument 10 if (fs->keys_loaded) 12 if (fs->public_key_path != NULL || fs->private_key_path != NULL) { 14 if (fs_crypt_load_keys_from_path(fs, error_r) < 0) 16 fs->keys_loaded = TRUE; 19 if (mail_crypt_global_keys_load_pluginenv(fs->set_prefix, &fs->keys, 21 *error_r = t_strdup_printf("%s: %s", fs [all...] |
H A D | fs-mail-crypt.c | 3 #include "fs-crypt-common.c" 6 int fs_crypt_load_keys(struct crypt_fs *fs, const char **error_r) argument 8 struct mailbox_list *list = mailbox_list_fs_get_list(&fs->fs); 11 if (fs->keys_loaded) 13 if (fs->public_key_path != NULL || fs->private_key_path != NULL) { 15 if (fs_crypt_load_keys_from_path(fs, error_r) < 0) 17 fs->keys_loaded = TRUE; 21 *error_r = "fs [all...] |
H A D | fs-crypt-common.c | 15 #include "fs-api-private.h" 18 struct fs fs; member in struct:crypt_fs 31 struct crypt_fs *fs; member in struct:crypt_fs_file 41 extern const struct fs FS_CLASS_CRYPT; 44 int fs_crypt_load_keys(struct crypt_fs *fs, const char **error_r); 46 static struct fs *fs_crypt_alloc(void) 48 struct crypt_fs *fs; local 50 fs = i_new(struct crypt_fs, 1); 51 fs 60 struct crypt_fs *fs = (struct crypt_fs *)_fs; local 122 struct crypt_fs *fs = (struct crypt_fs *)_fs; local 145 struct crypt_fs *fs = (struct crypt_fs *)_file->fs; local 212 fs_crypt_load_keys_from_path(struct crypt_fs *fs, const char **error_r) argument [all...] |
/dovecot/src/lib-storage/index/ |
H A D | index-attachment.h | 6 struct fs; 28 struct fs *fs, struct istream *input); 38 struct fs *fs, const char *name); 47 int index_attachment_stream_get(struct fs *fs, const char *attachment_dir,
|
/dovecot/src/plugins/fs-compress/ |
H A D | fs-compress.c | 11 #include "fs-api-private.h" 14 struct fs fs; member in struct:compress_fs 22 struct compress_fs *fs; member in struct:compress_fs_file 31 extern const struct fs fs_class_compress; 33 static struct fs *fs_compress_alloc(void) 35 struct compress_fs *fs; local 37 fs = i_new(struct compress_fs, 1); 38 fs->fs 46 struct compress_fs *fs = (struct compress_fs *)_fs; local 102 struct compress_fs *fs = (struct compress_fs *)_fs; local 119 struct compress_fs *fs = (struct compress_fs *)_file->fs; local [all...] |
/dovecot/src/doveadm/ |
H A D | doveadm-fs.c | 12 #include "fs-api.h" 30 static struct fs * 35 struct fs *fs; local 57 if (fs_init((*argv)[0], (*argv)[1], &fs_set, &fs, &error) < 0) 62 return fs; 67 struct fs *fs; local 78 fs = cmd_fs_init(&argc, &argv, 1, cmd_fs_get); 80 file = fs_file_init(fs, arg 104 struct fs *fs; local 161 struct fs *fs; local 189 struct fs *fs; local 221 struct fs *fs; local 255 struct fs *fs; member in struct:fs_delete_ctx 332 cmd_fs_delete_dir_recursive(struct fs *fs, unsigned int async_count, const char *path_prefix) argument 396 cmd_fs_delete_recursive_path(struct fs *fs, const char *path, unsigned int async_count) argument 422 struct fs *fs; local 434 struct fs *fs; local 488 struct fs *fs; local [all...] |
/dovecot/src/lib/ |
H A D | file-set-size.c | 94 fstore_t fs; 96 i_zero(&fs); 97 fs.fst_flags = F_ALLOCATECONTIG; 98 fs.fst_posmode = F_PEOFPOSMODE; 99 fs.fst_offset = 0; 100 fs.fst_length = size; 101 fs.fst_bytesalloc = 0; 102 if (fcntl(fd, F_PREALLOCATE, &fs) < 0) 104 return fs.fst_bytesalloc > 0 ? 1 : 0;
|
/dovecot/src/plugins/quota/ |
H A D | quota-fs.h | 17 # include <sys/fs/ufs_quota.h> /* Solaris */ 23 # include <sys/fs/quota_common.h> /* quotactl() */
|