[Samba] oplocks failed if user is not the owner of the file?

Georg Weickelt georg.weickelt at web.de
Wed Dec 1 02:25:08 MST 2010


Maybe, my last question was to short, but I would like to clear this:

Some users are faster than other users, I think because of caching the files on the client.

I have some identical windows 7 clients. All connected to Samba 3.5.6-4.1-2450-SUSE-SL11.2-x86_64
Samba is acting as a domain-master.
This is a part of smb.conf:

[global]
 workgroup = Firma
 map to guest = Bad User
 passdb backend = tdbsam:/etc/samba/passdb.tdb
 time server = Yes
 socket options = TCP_NODELAY  IPTOS_LOWDELAY
 printcap name = cups
 add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u
 logon script = netlogon.cmd
 logon path = \\%L\profiles\.msprofile
 logon drive = h:
 logon home = \\%L\%U\.9xprofile
 domain logons = Yes
 os level = 65
 preferred master = Yes
 domain master = Yes
 wins support = Yes
 ldap ssl = no
 cups options = raw

[public]
 comment = Datenverzeichnis
 path = /daten/public
 read only = No
 create mask = 0770
 directory mask = 0770


If they  the owner of the files, smbstatus shows me:
Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time
14955        1000       DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH  /daten/public   CARD80/DHD-ORT2/ProData/DOM00105.MDX   Wed Dec  1 10:09:02 2010

If the don't own the file:
Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time
5582         1002       DENY_NONE  0x2019f     RDWR       NONE             /daten/public   CARD80/DHD-ORT2/ProData/DOM00105.MDX   Wed Dec  1 10:12:06 2010

It means on my opinion, for file-owners the file get cached- and for others not.
What is the reason for this? And how can I change this?

The path /daten/public is located on a ext3 filesystem, mounted with acl,user_xattr

Thanks in advance

Georg Weickelt
___________________________________________________________
WEB.DE DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit 
gratis Notebook-Flat! http://produkte.web.de/go/DSL_Doppel_Flatrate/2


More information about the samba mailing list