[Dovecot] dotlock O_EXCL query

Timo Sirainen
Thu, 05 Jul 2007 14:45:35 -0000

On Wed, 2007-07-04 at 17:09 +1000, derek kit hoong foo
wrote:
> Hi there,
>
> I was wondering if someone can assist with clarifying why O_EXCL does not
> always work with NFS. Is it related to NFS protocol version support
> or export permissions mode out of the Celerra/Netapp ( e.g: mixed mode,
unix
> file permissions ? )

As far as I know, it requires NFSv3 and your NFS client must support it
also. From Linux NFS FAQ:

"It's worth noting that until early 2.6 kernels, O_EXCL creates were
not
atomic on Linux NFS clients."

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20070705/080046fd/attachment-0002.bin>