| /dovecot/src/lib-storage/index/dbox-multi/ |
| H A D | mdbox-file.h | 4 #include "dbox-file.h" 7 struct dbox_file file; member in struct:mdbox_file 19 /* Assign file ID for a newly created file. */ 20 int mdbox_file_assign_file_id(struct mdbox_file *file, uint32_t file_id); 22 void mdbox_file_unrefed(struct dbox_file *file); 23 int mdbox_file_create_fd(struct dbox_file *file, const char *path,
|
| /dovecot/src/lib/ |
| H A D | istream-file-private.h | 11 bool file:1; member in struct:file_istream
|
| H A D | execv-const.c | 1 /* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */ 28 void execvp_const(const char *file, const char *const argv[]) argument 30 (void)execvp(file, argv_drop_const(argv)); 32 "execvp(%s) failed: %m", file);
|
| H A D | ostream-file-private.h | 23 bool file:1; member in struct:file_ostream
|
| H A D | fd-util.c | 1 /* Copyright (c) 1999-2018 Dovecot authors, see the included COPYING file */ 75 i_error("Leaked file fd %d: dev %s.%s inode %s", 81 i_error("Leaked file fd %d: dev %s inode %s", 136 const char *func, const char *file, int line) 151 file, line, *fd); 135 i_close_fd_path(int *fd, const char *path, const char *arg, const char *func, const char *file, int line) argument
|
| /dovecot/src/lib-storage/index/dbox-single/ |
| H A D | sdbox-file.h | 4 #include "dbox-file.h" 7 struct dbox_file file; member in struct:sdbox_file 10 /* 0 while file is being created */ 21 void sdbox_file_free(struct dbox_file *file); 23 /* Get file's extrefs metadata. */ 24 int sdbox_file_get_attachments(struct dbox_file *file, const char **extrefs_r); 25 /* Returns attachment path for this file, given the source path. The result is 29 sdbox_file_attachment_relpath(struct sdbox_file *file, const char *srcpath); 31 /* Assign UID for a newly created file (by renaming it) */ 32 int sdbox_file_assign_uid(struct sdbox_file *file, uint32_ [all...] |
| H A D | sdbox-sync-rebuild.c | 1 /* Copyright (c) 2007-2018 Dovecot authors, see the included COPYING file */ 8 #include "sdbox-file.h" 29 struct dbox_file *file, uint32_t uid, bool primary) 35 if ((ret = dbox_file_open(file, &deleted)) > 0) { 38 ret = dbox_file_seek(file, 0); 41 if ((ret = dbox_file_fix(file, 0)) > 0) 42 ret = dbox_file_seek(file, 0); 49 i_warning("sdbox: Skipping unfixable file: %s", file->cur_path); 53 if (!dbox_file_is_in_alt(file) 28 sdbox_sync_add_file_index(struct index_rebuild_context *ctx, struct dbox_file *file, uint32_t uid, bool primary) argument 72 struct dbox_file *file; local [all...] |
| /dovecot/src/lib-fs/ |
| H A D | istream-fs-stats.c | 1 /* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */ 10 struct fs_file *file; member in struct:fs_stats_istream 28 fs_file_timing_end(sstream->file, FS_OP_READ); 34 i_stream_create_fs_stats(struct istream *input, struct fs_file *file) argument 39 sstream->file = file;
|
| H A D | istream-fs-file.c | 1 /* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */ 6 #include "istream-fs-file.h" 10 struct fs_file *file; member in struct:fs_file_istream 19 fs_file_deinit(&fstream->file); 28 input = fs_read_stream(fstream->file, 40 i_stream_create_fs_file(struct fs_file **file, size_t max_buffer_size) argument 46 fstream->file = *file; 53 ((*file)->flags & FS_OPEN_FLAG_ASYNC) == 0; 55 ((*file) [all...] |
| H A D | test-fs-metawrap.c | 1 /* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */ 14 struct fs_file *file; local 27 file = fs_file_init(fs, "foo", FS_OPEN_MODE_READONLY); 33 input = fs_read_stream(file, 2); 39 test_assert_idx(fs_stat(file, &st) == 0 && st.st_size == 20, i); 42 fs_file_deinit(&file); 60 test_begin("fs metawrap write empty file"); 63 struct fs_file *file = fs_file_init(fs, "foo", FS_OPEN_MODE_REPLACE); local 64 struct ostream *output = fs_write_stream(file); 65 test_assert(fs_write_stream_finish(file, [all...] |
| H A D | test-fs-posix.c | 1 /* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */ 51 struct fs_file *file; local 54 test_begin("test-fs-posix bad file read"); 55 file = fs_file_init(fs, "fail_1", FS_OPEN_MODE_READONLY); 56 test_assert(fs_exists(file) == 0); 57 count = fs_read(file, buf, 1); 59 fs_file_deinit(&file); 62 test_begin("test-fs-posix good file write"); 63 file = fs_file_init(fs, "good1", FS_OPEN_MODE_REPLACE); 64 test_assert(file ! [all...] |
| H A D | fs-test-async.c | 1 /* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */ 11 struct fs_file *file; local 18 file = fs_file_init(fs, "foo", FS_OPEN_MODE_REPLACE | 20 output = fs_write_stream(file); 24 test_assert(fs_write_stream_finish(file, &output) == 0); 26 test_assert(fs_write_stream_finish_async(file) == 0); 34 test_assert(fs_write_stream_finish_async(file) > 0); 39 test_assert(fs_write_stream_finish_async(file) < 0); 43 fs_write_stream_abort_error(file, &output, "test"); 47 fs_file_deinit(&file); [all...] |
| H A D | fs-test.h | 13 struct fs_file file; member in struct:test_fs_file
|
| H A D | fs-sis-queue.c | 1 /* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */ 17 struct fs_file file; member in struct:sis_queue_fs_file 72 struct sis_queue_fs_file *file = i_new(struct sis_queue_fs_file, 1); local 73 return &file->file; 80 struct sis_queue_fs_file *file = (struct sis_queue_fs_file *)_file; local 83 file->file.path = i_strdup(path); 84 file->fs = fs; 89 file 94 struct sis_queue_fs_file *file = (struct sis_queue_fs_file *)_file; local 102 fs_sis_queue_add(struct sis_queue_fs_file *file) argument 124 struct sis_queue_fs_file *file = (struct sis_queue_fs_file *)_file; local 151 struct sis_queue_fs_file *file = (struct sis_queue_fs_file *)_file; local [all...] |
| /dovecot/src/lib-storage/index/dbox-common/ |
| H A D | dbox-attachment.c | 1 /* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */ 6 #include "dbox-file.h" 25 dbox_attachment_file_get_stream_from(struct dbox_file *file, argument 33 if (file->storage->attachment_dir == NULL) { 34 mail_storage_set_critical(&file->storage->storage, 36 "but mail_attachment_dir is unset", file->cur_path); 40 msg_size = dbox_file_get_plaintext_size(file); 41 path_suffix = file->storage->v.get_attachment_path_suffix(file); 42 if (index_attachment_stream_get(file 50 dbox_attachment_file_get_stream(struct dbox_file *file, struct istream **stream) argument [all...] |
| /dovecot/src/lib-index/ |
| H A D | mail-index-write.c | 1 /* Copyright (c) 2003-2018 Dovecot authors, see the included COPYING file */ 22 /* we very much want to avoid creating a backup file that 44 /* no dovecot.index file, ignore */ 135 struct mail_transaction_log_file *file = local 137 i_assert(file->hdr.prev_file_seq == hdr->log_file_seq); 138 i_assert(file->hdr.prev_file_offset == hdr->log_file_head_offset); 139 hdr->log_file_seq = file->hdr.file_seq; 141 hdr->log_file_tail_offset = file->hdr.hdr_size;
|
| H A D | mail-transaction-log-append.c | 1 /* Copyright (c) 2003-2018 Dovecot authors, see the included COPYING file */ 42 struct mail_transaction_log_file *file = ctx->log->head; local 46 if (ftruncate(file->fd, file->sync_offset) < 0) { 48 file->filepath, 54 i_assert(MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(file)); 56 i_assert(file->buffer_offset + file->buffer->used == file->sync_offset); 57 buffer_append_buf(file 64 struct mail_transaction_log_file *file = ctx->log->head; local 119 struct mail_transaction_log_file *file = ctx->log->head; local 178 struct mail_transaction_log_file *file = ctx->log->head; local [all...] |
| H A D | test-mail-transaction-log-append.c | 1 /* Copyright (c) 2009-2018 Dovecot authors, see the included COPYING file */ 25 void mail_transaction_log_file_unlock(struct mail_transaction_log_file *file ATTR_UNUSED, 45 struct mail_transaction_log_file *file = log->head; local 60 test_assert(file->sync_highest_modseq == 1); 61 test_assert(file->sync_offset == file->buffer_offset + file->buffer->used); 63 hdr = file->buffer->data; 68 test_assert(bound->size == file->buffer->used); 85 test_assert(file 94 struct mail_transaction_log_file *file = log->head; local 122 struct mail_transaction_log_file *file; local [all...] |
| H A D | test-mail-transaction-log-file.c | 1 /* Copyright (c) 2009-2018 Dovecot authors, see the included COPYING file */ 266 struct mail_transaction_log_file *file = index->log->head; local 283 modseq_next_offset[modseq] = file->sync_offset; 293 modseq_alt_next_offset[modseq] = file->sync_offset; 309 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 1, &next_offset) == 0); 313 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, max_modseq, &next_offset) == 0); 314 test_assert(next_offset == file->sync_offset); 317 modseq_next_offset[max_modseq] = file->sync_offset; 319 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 2, &next_offset) == 0); 322 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 378 struct mail_transaction_log_file *file = index->log->head; local [all...] |
| H A D | test-mail-transaction-log-view.c | 1 /* Copyright (c) 2009-2018 Dovecot authors, see the included COPYING file */ 17 void mail_transaction_log_file_set_corrupted(struct mail_transaction_log_file *file ATTR_UNUSED, 31 struct mail_transaction_log_file *file; local 33 for (file = log->files; file != NULL; file = file->next) { 34 if (file->hdr.file_seq == file_seq) { 35 *file_r = file; 43 int mail_transaction_log_file_map(struct mail_transaction_log_file *file ATTR_UNUSE 70 struct mail_transaction_log_file **p, *file; local 110 add_append_record(struct mail_transaction_log_file *file, const struct mail_index_record *rec) argument [all...] |
| H A D | mail-index-transaction.c | 1 /* Copyright (c) 2003-2018 Dovecot authors, see the included COPYING file */ 148 struct mail_transaction_log_file *file; local 162 file = t->view->index->log->head; 168 i_assert(file->sync_offset >= file->buffer_offset); 169 ctx->new_highest_modseq = file->sync_highest_modseq;
|
| H A D | mail-transaction-log.c | 1 /* Copyright (c) 2003-2018 Dovecot authors, see the included COPYING file */ 6 #include "file-dotlock.h" 18 struct mail_transaction_log_file *file) 20 i_assert(log->head != file); 22 file->refcount++; 23 log->head = file; 26 i_assert(log->files->next != NULL || log->files == file); 77 struct mail_transaction_log_file *file; local 98 file = mail_transaction_log_file_alloc(log, log->filepath); 99 if ((ret = mail_transaction_log_file_open(file, 17 mail_transaction_log_set_head(struct mail_transaction_log *log, struct mail_transaction_log_file *file) argument 110 struct mail_transaction_log_file *file; local 165 struct mail_transaction_log_file *file; local 191 struct mail_transaction_log_file *file; local 213 struct mail_transaction_log_file *file, *next; local 236 struct mail_transaction_log_file *file = log->head; local 263 struct mail_transaction_log_file *file; local 323 struct mail_transaction_log_file *file; local 402 struct mail_transaction_log_file *file; local 480 struct mail_transaction_log_file *file; local 592 struct mail_transaction_log_file *tail, *file = log->files; local [all...] |
| /dovecot/src/lib-storage/ |
| H A D | mailbox-watch.c | 1 /* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */ 30 struct mailbox_notify_file *file; local 34 for (file = box->notify_files; file != NULL; file = file->next) { 35 if (stat(file->path, &st) == 0 && 36 ST_CHANGED(file->last_st, st)) { 37 file->last_st = st; 60 struct mailbox_notify_file *file; local 89 struct mailbox_notify_file *file; local 112 struct mailbox_notify_file *file; local [all...] |
| /dovecot/src/auth/ |
| H A D | userdb-lua.c | 1 /* Copyright (c) 2003-2018 Dovecot authors, see the included COPYING file */ 14 const char *file; member in struct:dlua_userdb_module 42 if (strncmp(*fields, "file=", 5) == 0) { 43 module->file = p_strdup(pool, (*fields)+5); 66 if (module->file == NULL) 67 i_fatal("userdb-lua: Missing mandatory file= parameter"); 83 if (dlua_script_create_file(module->file, &module->script, &error) < 0 ||
|
| H A D | passdb-lua.c | 1 /* Copyright (c) 2017-2018 Dovecot authors, see the included COPYING file */ 14 const char *file; member in struct:dlua_passdb_module 114 if (strncmp(*fields, "file=", 5) == 0) { 115 module->file = p_strdup(pool, (*fields)+5); 140 if (module->file == NULL) 141 i_fatal("passdb-lua: Missing mandatory file= parameter"); 156 if (dlua_script_create_file(module->file, &module->script, &error) < 0 ||
|