[Samba] What's Happening
ken at lt.com
Fri May 24 08:24:03 GMT 2002
Urban Widmark wrote:
> On Fri, 24 May 2002, Kenneth Loafman wrote:
> > Found these messages in /var/log/dmesg on a Redhat 7.1 machine running
> > Samba 2.2.2 accessing a Win 2000 share. Actually, there are a bunch of
> > tasks accessing the same share, complete with file locking, etc.
> smbfs does not support file locking to the remote side. The local
> processes will lock between themselves but not vs anyone on the server
I misspoke when I said file locking. The locking is via a guard file
created with "open(guard, O_WRONLY | O_CREAT | O_EXCL, 0644)", which
should protect against other processes opening it once it has been
created. It appears that is not working either.
Background: there are multiple processes/CPU's on the Linux side working
a jobqueue on a Win 2000 fileserver (Samba mounted to Linux). The guard
file appears to work in low volume, but appears to fail on occassion
(see last message).
If locking does not work, and guard files don't work, how does one
maintain a queue via Samba? Are there any papers on the subject? Do I
need to put the guard files on an NFS mounted FS on a Linux box? I seem
to recall that NFS has locking problems as well.
More information about the samba