Subject: Re: NFSv3 O_EXCL
To: None <email@example.com>
From: Manuel Bouyer <firstname.lastname@example.org>
Date: 07/26/2000 19:01:48
On Tue, Jul 25, 2000 at 05:57:12PM -0400, email@example.com wrote:
> The problem with the change you suggest is that a lot of programs don't
> expect open()s with O_EXCL to always fail (which is what will happen
> after the change you suggest for servers that don't support the option).
program opening a file with O_EXCL expect a specific, well defined service
from the filesystem. If the filesystem (or in this case the NFS server) can't
offer this service; then this program can't work reliably. I don't think it's
good to allow it to run anyway. The only problem I can see here is that
EOPNOTSUPP doesn't point to the server, unless you really know what's up.
Now, a program opening a file O_EXCL when it doesn't need it is brocken.
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr