On Wed, 2012-05-16 at 12:39 +0200, Lazy wrote:
> May 16 12:11:36 thebe2 dovecot: imap(lazy): Error:
> open(/snapshot/h1/vmail/la/lazy/Maildir/.SPAM/dovecot-uidlist.lock)
> failed: Read-only file system
Does the attached patch help?
> maybe it will be easier to move all dovecot metadata to separate (non
> snapshot) location ?
It could also be a bit problematic. At least message keywords (=custom
flags) wouldn't work because the dovecot-keywords file exists only in
the snapshot dir.
diff -r 42cca8a1d179 src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Sat May 19 21:18:04 2012 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c Sat May 19 21:54:38 2012 +0300
@@ -173,6 +173,11 @@
return 0;
}
if (errno != ENOENT || i == MAILDIR_DELETE_RETRY_COUNT) {
+ if (errno == EROFS) {
+ mail_storage_set_error(box->storage,
+ MAIL_ERROR_NOTPOSSIBLE, "Read-only namespace");
+ return 0;
+ }
if (errno == EACCES) {
mail_storage_set_critical(box->storage, "%s",
eacces_error_get_creating("file_dotlock_create", path));