Re: [Dovecot] 1.0.14 -> 1.1.1: dovecot-uidlist errors

2008-07-23 Thread Edgar Fuß
> I'll ask the question on tech-kern. It looks like there is no method of explicitly syncing a drectory; you'll have to sync the individual files instead. The reason is probably that before the advent of soft updates, metadata write on FFS used to be syncronous anyway.

Re: [Dovecot] 1.0.14 -> 1.1.1: dovecot-uidlist errors

2008-07-20 Thread Timo Sirainen
On Sat, 2008-07-19 at 22:57 +0200, Geert Hendrickx wrote: > On Tue, Jun 24, 2008 at 07:36:44PM +0300, Timo Sirainen wrote: > > On Jun 24, 2008, at 7:31 PM, Amitai Schlair wrote: > > >Jun 24 12:22:13 chicken-ac dovecot: Panic: IMAP(schmonz): file > > >maildir-uidlist.c: line 1217 (maildir_uidlist_

Re: [Dovecot] 1.0.14 -> 1.1.1: dovecot-uidlist errors

2008-07-19 Thread Geert Hendrickx
On Tue, Jun 24, 2008 at 07:36:44PM +0300, Timo Sirainen wrote: > On Jun 24, 2008, at 7:31 PM, Amitai Schlair wrote: > >Jun 24 12:22:13 chicken-ac dovecot: Panic: IMAP(schmonz): file > >maildir-uidlist.c: line 1217 (maildir_uidlist_sync_update): > >assertion failed: (ctx->first_unwritten_pos !=

Re: [Dovecot] 1.0.14 -> 1.1.1: dovecot-uidlist errors

2008-07-09 Thread Edgar Fuß
If there is no 3 and the server crashes just after 4, I don't think the rename() was guaranteed to have reached the disk. OK, I understand. If NetBSD doesn't support this, what other way is there to do it? I don't know of a way of doing this. The problem probably is that metadata writes used

Re: [Dovecot] 1.0.14 -> 1.1.1: dovecot-uidlist errors

2008-07-09 Thread Timo Sirainen
On Jul 9, 2008, at 3:48 PM, Edgar Fuß wrote: Apparently it doesn't like that I try to fsync() a read-only directory file descriptor. I would argue that NetBSD is correct in this. Posix says: The fsync() function shall request that all data for the open file descriptor named by fildes is to

Re: [Dovecot] 1.0.14 -> 1.1.1: dovecot-uidlist errors

2008-07-09 Thread Edgar Fuß
Apparently it doesn't like that I try to fsync() a read-only directory file descriptor. I would argue that NetBSD is correct in this. Posix says: The fsync() function shall request that all data for the open file descriptor named by fildes is to be transferred to the storage device associa

Re: [Dovecot] 1.0.14 -> 1.1.1: dovecot-uidlist errors

2008-06-24 Thread Jean-Edouard Babin
On Tue, Jun 24, 2008 at 6:50 PM, Amitai Schlair <[EMAIL PROTECTED]> wrote: > Timo Sirainen wrote: > >> On Jun 24, 2008, at 7:31 PM, Amitai Schlair wrote: >> >>> Jun 24 12:22:13 chicken-ac dovecot: IMAP(schmonz): >>> fdatasync_path(/home/schmonz/Maildir/.Trash/cur) failed: Bad file descriptor >> >>

Re: [Dovecot] 1.0.14 -> 1.1.1: dovecot-uidlist errors

2008-06-24 Thread Amitai Schlair
Timo Sirainen wrote: On Jun 24, 2008, at 7:31 PM, Amitai Schlair wrote: Jun 24 12:22:13 chicken-ac dovecot: IMAP(schmonz): fdatasync_path(/home/schmonz/Maildir/.Trash/cur) failed: Bad file descriptor What OS and filesystem do you use? NetBSD 4.0, FFS with soft updates. Jun 24 12:22:13 ch

Re: [Dovecot] 1.0.14 -> 1.1.1: dovecot-uidlist errors

2008-06-24 Thread Timo Sirainen
On Jun 24, 2008, at 7:31 PM, Amitai Schlair wrote: I've just updated from 1.0.14 to 1.1.1 (Maildirs). According to http://wiki.dovecot.org/Upgrading/1.1 >, "dovecot-uidlist file is in a new format. The old format is automatically converted to new one." When I try to delete a message (which m

[Dovecot] 1.0.14 -> 1.1.1: dovecot-uidlist errors

2008-06-24 Thread Amitai Schlair
I've just updated from 1.0.14 to 1.1.1 (Maildirs). According to http://wiki.dovecot.org/Upgrading/1.1>, "dovecot-uidlist file is in a new format. The old format is automatically converted to new one." When I try to delete a message (which moves it to the IMAP Trash folder), I get the following