Re: [PATCH] for lost mail due to NFS cache/locking non-atomicity

Olaf Titz (olaf@bigred.inka.de)
Mon, 30 Nov 1998 11:57:03 +0100


> > - This bug can also bite mail folders kept in a user's home
> > directory, which are often mounted over NFS. Depending on what
> > the user is up to.
>
> Qmail stores mail here doesn't it?

qmail stores each message in its own file and never rewrites one once
it's written (the only operation done on message files being read,
rename and unlink). That should avoid that problem. qmail (more
specifically, the maildir format) was designed for all operations
on it to be NFS-safe, which makes it a bit complicated.

Storing mail in the home directory has a number of advantages
independent of the mailbox format used, so mail spools should be NFS
safe anyway. But the traditional mailbox format and especially the ELM
way of rewriting it can't be NFS safe. A bit better is emacs or MH
which always empty the mailbox file and do the processing in their own
storage space.

Olaf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/