15 Oct
2010
15 Oct
'10
1:05 p.m.
On 15.10.2010, at 10.29, Edgar Fuß wrote:
Even if close() fails, the file is still in tmp/ and Dovecot aborts the save. I don't know whether the NFS server behaves that way (I would have to try out), but how would dovecot's LDA behave if, for a small message, upon the write (to tmp) the write() succeeds and the close() (which would actually try to flush the buffered data to disc) fails?
It would log an error and delete the tmp file.
The only reason I can think of is that you've done async NFS mount and the failed write() is noticed way too late by the kernel. Would you consider "upon close()" as "way too late"?
Nope. I mean if it fails after close().