[Samba] linux_set_kernel_oplock: Refused oplock on file. F_SETLEASE semantic problem ?

Cedric Delfosse cedric.delfosse at linbox.com
Thu Jun 22 14:09:31 GMT 2006


Cedric Delfosse a écrit :
> Cedric Delfosse a écrit :
>> Jeremy Allison a écrit :
>>> On Thu, Jun 15, 2006 at 11:39:21AM +0200, Cedric Delfosse wrote:
>>>> (Samba 3.0.21c / kernel 2.4.27 / Debian Sarge)
>>>>
>>>> Hello,
>>>>
>>>> One of my user open a file (located on a SAMBA server) in its 
>>>> application, and when he tries to save it, he gets a "share 
>>>> violation" error. (other people have this problem too).
>>>> This error happens since I upgraded the SAMBA server from 3.0.14a to 
>>>> 3.0.21c.
>>>>
>>>> smbstatus for this file:
>>>>
>>>> 32613        DENY_WRITE 0x20089     RDONLY     NONE 
>>>> /home/user/J84400os-V8   Thu Jun 15 10:46:05 2006
>>>>
>>>> Samba log when trying to save the file:
>>>>
>>>> [2006/06/15 10:50:44, 2] smbd/open.c:open_file(350)
>>>> user1 opened file J84400os-V8 read=Yes write=No (numopen=12)
>>>> [2006/06/15 10:50:44, 3] 
>>>> smbd/oplock_linux.c:linux_set_kernel_oplock(161)
>>>> linux_set_kernel_oplock: Refused oplock on file J84400os-V8,
>>>> fd = 33, dev = b, inode = 2621998. (Resource temporarily unavailable)
>>>
>>> You can turn off kernel oplocks with "kernel oplocks = no"
>>> in your smb.conf. You might want to try 3.0.22 (or the 3.0.23RC2)
>>> instead as we made changes in this area.
>>
>> I will try 3.0.22 and tell you if this fix my problem.
> 
> Setting "kernel oplocks = No" didn't fix the problem too: I now get a 
> "Access Denied" error. Here is now what I have into the samba log (the 
> user opens the file and tries to save it):

Hello

I'm answering to myself. My problems are fixed:
  - kernel oplocks = No has fixed the violation error for some 
applications. Why the oplocks are refused is unknown, but for now I 
don't need them ;
  - there is only one application (a CAO drawing tool) for which only 
some files causes a violation error, even with kernel oplocks = No. 
Looks like there was an interaction with the SAMBA-VSCAN module (version 
0.3.6b) somewhere, as disabling this module removed the violation error.

Thanks a lot for your help.

Regards,

-- 
Cédric Delfosse                             Linbox / Free&ALter Soft
152, rue de Grigy - Technopole Metz                       57070 METZ
tél : 03 87 50 87 98                               http://linbox.com


More information about the samba mailing list