Mercurial > dovecot > core-2.2
comparison src/lib-storage/mail-storage-private.h @ 22276:5fac15015445
lib-storage: Move .vsize.lock creation to a generic mailbox_lock_file_create()
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 22 Jun 2017 02:19:18 +0300 |
parents | 540b5d44c561 |
children | d4f4499c2a3a |
comparison
equal
deleted
inserted
replaced
22275:c4061e9cc721 | 22276:5fac15015445 |
---|---|
784 enum mailbox_list_path_type type); | 784 enum mailbox_list_path_type type); |
785 | 785 |
786 /* Returns -1 if error, 0 if failed with EEXIST, 1 if ok */ | 786 /* Returns -1 if error, 0 if failed with EEXIST, 1 if ok */ |
787 int mailbox_create_fd(struct mailbox *box, const char *path, int flags, | 787 int mailbox_create_fd(struct mailbox *box, const char *path, int flags, |
788 int *fd_r); | 788 int *fd_r); |
789 /* Create a lock file to the mailbox with the given filename. If it succeeds, | |
790 returns 1 and lock_r, which needs to be freed once finished with the lock. | |
791 If lock_secs is reached, returns 0 and error_r. Returns -1 and sets error_r | |
792 on other errors. */ | |
793 int mailbox_lock_file_create(struct mailbox *box, const char *lock_fname, | |
794 unsigned int lock_secs, struct file_lock **lock_r, | |
795 const char **error_r); | |
789 unsigned int mail_storage_get_lock_timeout(struct mail_storage *storage, | 796 unsigned int mail_storage_get_lock_timeout(struct mail_storage *storage, |
790 unsigned int secs); | 797 unsigned int secs); |
791 void mail_storage_free_binary_cache(struct mail_storage *storage); | 798 void mail_storage_free_binary_cache(struct mail_storage *storage); |
792 | 799 |
793 enum mail_index_open_flags | 800 enum mail_index_open_flags |