[Samba] linux_set_kernel_oplock: Refused oplock on file.
F_SETLEASE semantic problem ?
Cedric Delfosse
cedric.delfosse at linbox.com
Wed Jun 21 18:53:37 GMT 2006
Le mercredi 21 juin 2006 à 18:43 +0200, Cedric Delfosse a écrit :
[...]
> Btw, I have found a way to reproduce the the kernel oplocks bug with
> SAMBA 3.0.21C and SAMBA 3.0.22. Looks like this is related to NFS. But I
> don't get the "share violation" error box from Windows.
>
> Here is the howto:
> - On SAMBA server, in the home of a user, create a symbolic link to a
> NFS imported directory. For example, if "cedric" is my username, I have:
>
> # ls /home/cedric -l
> total 64
> drwx--S--- 2 cedric Domain Users 34 2006-06-16 14:44 Desktop
> -rwx------ 1 cedric Domain Users 6527 2006-06-21 18:14 Nouveau Texte
> Open Office.odt
> lrwxrwxrwx 1 root Domain Users 25 2006-06-21 17:05 tmp ->
> /net/soda/home/cedric/tmp
Forget this part ! As the log shows, there's no need to be on NFS to get
the kernel oplock error.
On open:
[2006/06/21 18:14:09, 3] smbd/dosmode.c:unix_mode(121)
unix_mode(Nouveau Texte Open Office.odt) returning 0700
[2006/06/21 18:14:09, 2] smbd/open.c:open_file(350)
cedric opened file Nouveau Texte Open Office.odt read=Yes write=Yes
(numopen=1)
[2006/06/21 18:14:09, 3]
smbd/oplock_linux.c:linux_set_kernel_oplock(166)
linux_set_kernel_oplock: got kernel oplock on file Nouveau Texte Open
Office.odt, dev = 804, inode = 446, file_id = 27
On write:
[2006/06/21 18:14:27, 3] smbd/oplock.c:initial_break_processing(311)
initial_break_processing: called for dev = 0x804, inode = 446 file_id
= 27
Current oplocks_open (exclusive = 1, levelII = 0)
...
[2006/06/21 18:14:27, 3] smbd/dosmode.c:unix_mode(121)
unix_mode(Nouveau Texte Open Office.odt) returning 0700
[2006/06/21 18:14:27, 2] smbd/open.c:open_file(350)
cedric opened file Nouveau Texte Open Office.odt read=Yes write=No
(numopen=2)[2006/06/21 18:14:27, 3]
smbd/oplock_linux.c:linux_set_kernel_oplock(161)
linux_set_kernel_oplock: Refused oplock on file Nouveau Texte Open
Office.odt, fd = 26, dev = 804, inode = 446. (Ressource temporairement
non disponible)
Best regards
More information about the samba
mailing list