[Samba] [SMB 3.0.10] File Locking Mechanism Windows <-> Unix
Jeremy Allison
jra at samba.org
Mon Mar 14 19:06:30 GMT 2005
On Mon, Mar 14, 2005 at 03:12:34PM +0530, Asif, M wrote:
>
> The files under this directory are modified both from Windows and Solaris
> programatically. When ever a process accesses a file in this directory, it
> opens it in an exclusive mode ( DENY_ALL ). Now, this works fine between two
> processes on Windows and between two UNIX process (Gives equivalent of
> Winods error 53, File is used by another process) . But this does not work
> between Winodws and Unix. i.e Both of them are able to open the file in
> exclusive mode!! I ran the 'fuser' command in such a situation ( when both
> had exclusive accesses to the file) and to my surprise I found that both
> smbd and the unix process are listed
What is the UNIX process doing to enforce exclusivity ? What system call
do you think it does ?
Remember, share modes have no meaning on UNIX.
Jeremy.
More information about the samba
mailing list