Re: [Samba] best practice nfs and samba file lock
- Date: Tue, 6 Mar 2018 10:41:52 -0800
- From: Jeremy Allison via samba <samba@xxxxxxxxxxxxxxx>
- Subject: Re: [Samba] best practice nfs and samba file lock
On Tue, Mar 06, 2018 at 12:01:58PM +0100, Michael Wandel via samba wrote:
> i'm searching for best practice in configuration a dual head nfs / samba
> server. At the moment samba 3.6.x is used, an yes i'll know it is EOL.
> We have the problem if the windows client open a file, the aix nfs
> client doesn't recognize the lock and overwrite the file.
> Is there a solution for this or is this the hell of nfs locking ;-)
If you set "posix locking = yes" (default) in smb.conf,
then smbd maps Windows locks into POSIX fcntl locks.
Now these locks are advisory, not mandatory. Is your nfs client
checking for advisory locks ? Do you have wireshark *proof*
of this (N.B., this is the fcntl lock type, *NOT* the BSD
flock or lockf type).
To unsubscribe from this list go to the following URL and read the