[Samba] Samba locking problem - is this a bug ?

Gerald (Jerry) Carter jerry at samba.org
Fri Feb 28 14:37:57 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 25 Feb 2003, System Administrators At Netclime Inc. wrote:

> What you mean, by the program opening the file decides how to open it ?
> Is it depend on the filesystem handling of open calls ? I mean - it
> doesn't matter ith which program I create the file on the share (I tried
> 3-4 vaious) this DENY_FCB RDWR shows always.

These are DOS open/deny modes.  The client requested them.  Samba maps
these onto posix locks on the file system, but some of the (e.g. deny 
modes) don't map at all so smbd has to maintain them internally for 
clients.

> My point is, that shouldn't SAMBA server take care of lost connection to
> the clients and remove the file locks ? 

Samba does after a reasonable time.  We don't immediately know that the 
client has gone away.  Do you think it would be a better solution for 
Samba to give away locks because someone tripped over a hub and unplugged 
it for a few seconds?

> And why "share modes = no" doesn;t remove support for DENY_FCB and other
> similar modes ?

What version did you say you were running?  I haven't look at that option 
since it got added back in.





cheers, jerry
 ----------------------------------------------------------------------
 Hewlett-Packard            ------------------------- http://www.hp.com
 SAMBA Team                 ---------------------- http://www.samba.org
 GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
 "You can never go home again, Oatman, but I guess you can shop there."  
                            --John Cusack - "Grosse Point Blank" (1997)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+X3RFIR7qMdg1EfYRAhkwAJ9W7yJnhajEHDUikCSRjmHpGI7tIwCcC6ph
YiLKCJWrAuPCIyN6zXU9iWQ=
=30nj
-----END PGP SIGNATURE-----



More information about the samba mailing list