Cedric Delfosse
2006-Jun-15 09:39 UTC
[Samba] linux_set_kernel_oplock: Refused oplock on file. F_SETLEASE semantic problem ?
(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) Corresponding strace log: open("J84400os-V8",O_RDONLY|O_LARGEFILE) = 27 time(NULL) = 1150361813 geteuid32() = 1043 write(29, "[2006/06/15 10:56:53, 2] smbd/op"..., 52) = 52 geteuid32() = 1043 write(29, " user1 opened file Repertoi"..., 162) = 162 fcntl64(27, F_SETSIG, 0x24) = 0 fcntl64(27, 0x400 /* F_??? */, 0x1) = -1 EAGAIN (Resource temporarily unavailable) time(NULL) = 1150361813 geteuid32() = 1043 write(29, "[2006/06/15 10:56:53, 3] smbd/op"..., 74) = 74 geteuid32() = 1043 write(29, " linux_set_kernel_oplock: Refus"..., 229) = 229 fnctl 0x400 op seems to be F_SETLEASE. Is there a problem between the version of kernel I use and how SAMBA use F_SETLEASE ? Is there a way to resolve this problem ? Should I recompile SAMBA with specific options to fix this problem ? Best 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
Volker Lendecke
2006-Jun-15 10:02 UTC
[Samba] linux_set_kernel_oplock: Refused oplock on file. F_SETLEASE semantic problem ?
On Thu, Jun 15, 2006 at 11:39:21AM +0200, Cedric Delfosse wrote:> 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.Try with 'kernel oplocks = no'. This is safe as long as you do not have any processes that concurrently access the files from Unix or via an NFS export. Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20060615/cbbf3384/attachment.bin
Jeremy Allison
2006-Jun-15 16:37 UTC
[Samba] linux_set_kernel_oplock: Refused oplock on file. F_SETLEASE semantic problem ?
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. Jeremy.
Cedric Delfosse
2006-Jun-16 10:08 UTC
[Samba] linux_set_kernel_oplock: Refused oplock on file. F_SETLEASE semantic problem ?
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. 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
James Kosin
2006-Jun-22 19:33 UTC
[Samba] linux_set_kernel_oplock: Refused oplock on file. F_SETLEASE semantic problem ?
Jeremy Allison wrote:>> - 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. > > Interesting. If that the latest version of vscan ? > > Jeremy.It is the latest, although 0.4.0 has been released as a snapshot. I think maybe his problem is he may be using an older compiled version of SAMBA-VSCAN that has not been compiled for the new version of SAMBA installed. I do know the source for vscan requires integration with the correct version of samba; otherwise, unpredictable results happen. To be sure, ask him to rebuild the vscan module against the source for his version of samba. Of course, he has to get these for his distro. -James -- Scanned by ClamAV - http://www.clamav.net
Maybe Matching Threads
- winbind: getent passwd displays the user, but SAMBA says Get_Pwnam_internals didn't find user
- [3.0.23d] winbind: ads_connect for domain X failed: Operations error
- problem with kernel oplock
- oplock not working correctly
- smbldap machine account pb since 3.0.23c-1