I am a little bit confused about the kernel support for oplocks. man page of smb.conf: ---------------- For UNIXs that support kernel based oplocks (currently only IRIX but hopefully also Linux and FreeBSD soon) this parameter allows the use of them to be turned on or off. This parameter defaults to "On" on systems that have the support, and "off" on systems that don't. You should never need to touch this parameter. ---------------- The date of the man page ist 23 Oct 1998 If I install the samba binaries (2.0.6) that come with Red Hat 6.2 (linux kernel 2.2.14) kernel oplocks are set to "Yes" (not "On" or "Off") If I compile the samba sources from 2.0.7 on the same machine during configure some test programs regarding kernel oplocks are compiled, and all fail. In acconfig.h this line is generated: #undef HAVE_KERNEL_OPLOCKS So I assume that my Linux box does not support kernel oplocks. When I run the just compiled samba and dump the configuration with testparm kernel oplocks are nevertheless set to "yes". I also compiled Samba 2.0.7 on UnixWare 7. The same line is generated in acconfig.h, but even here kernel oplocks are set to "yes". Obviously the man page of smb.conf is wrong. But are there any UNIXs besides IRIX that support kernel oplocks ? Wolfgang Kretzschmar
Wolfgang Kretzschmar wrote:> > If I install the samba binaries (2.0.6) that come with Red Hat 6.2 > (linux kernel 2.2.14) kernel oplocks are set to "Yes" (not "On" or > "Off")Red Hat has shipped broken configuration files in the past.> If I compile the samba sources from 2.0.7 on the same machine during > configure some test programs regarding kernel oplocks are compiled, > and all fail. In acconfig.h this line is generated: > > #undef HAVE_KERNEL_OPLOCKSLinux does not surrently support oplocks, so you are correct.> Obviously the man page of smb.conf is wrong.I'll check on it.> But are there any UNIXs besides IRIX that support kernel oplocks ?No. There is support Linux in the works. Patches exist but it has not been integrated into the kernel. Cheers, jerry ---------------------------------------------------------------------- /\ Gerald (Jerry) Carter Professional Services \/ http://www.valinux.com VA Linux Systems gcarter@valinux.com http://www.samba.org SAMBA Team jerry@samba.org http://www.eng.auburn.edu/~cartegw "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 )
I had noticed similar behavior in my samba 2.0.7 install on Solaris 2.6. I built the samba myself with gcc 2.8.1, and after installing, ran testparm and saw that kernel oplocks was set to yes. Given that I didn't think Solaris supported this yet (if ever), I set it to no in the smb.conf. However, this still struck me as weird, and having seen Wolfgang's note, I thought I would mention it as a likely looking bug. -- Bill Knox Senior Operating Systems Programmer/Analyst The MITRE Corporation Wolfgang Kretzschmar wrote:> > I am a little bit confused about the kernel support for oplocks. > > man page of smb.conf: > > ---------------- > For UNIXs that support kernel based oplocks (currently only IRIX but > hopefully also Linux and FreeBSD soon) this parameter allows the use > of them to be turned on or off. > > This parameter defaults to "On" on systems that have the support, and > "off" on systems that don't. You should never need to touch this > parameter. > ---------------- > > The date of the man page ist 23 Oct 1998 > > If I install the samba binaries (2.0.6) that come with Red Hat 6.2 > (linux kernel 2.2.14) kernel oplocks are set to "Yes" (not "On" or > "Off") > > If I compile the samba sources from 2.0.7 on the same machine during > configure some test programs regarding kernel oplocks are compiled, > and all fail. In acconfig.h this line is generated: > > #undef HAVE_KERNEL_OPLOCKS > > So I assume that my Linux box does not support kernel oplocks. > > When I run the just compiled samba and dump the configuration with > testparm kernel oplocks are nevertheless set to "yes". > > I also compiled Samba 2.0.7 on UnixWare 7. The same line is generated > in acconfig.h, but even here kernel oplocks are set to "yes". > > Obviously the man page of smb.conf is wrong. > > But are there any UNIXs besides IRIX that support kernel oplocks ? > > Wolfgang Kretzschmar
Hallo. We want to use the switch "kernel oplocks = yes". It only works with linux-2.4.x. Do i have to configure somthing in the Kernel to suppotr this feature, or is it supported automatically???? Thanks, Andre -------------- next part -------------- HTML attachment scrubbed and removed
On Mon, 19 Nov 2001, Andre Klocke wrote:> Hallo. > > We want to use the switch "kernel oplocks = yes". It only works with > linux-2.4.x. Do i have to configure somthing in the Kernel to suppotr > this feature, or is it supported automatically????It is supported in the kernel automatically via fcntl() calls. However, you will need to run ./configure and compile Samba on a system with a 2.4 kernel. jerry --------------------------------------------------------------------- www.samba.org SAMBA Team jerry_at_samba.org www.plainjoe.org jerry_at_plainjoe.org http://www.hp.com Hewlett-Packard --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
On Monday 19 November 2001 03:09 pm, Andre Klocke wrote:> What kind of propblems are you talking about? Is it fixed in 2.2.2? > (Question to all others!!!) > > Well, I hope everything will work all right, because we would get trouble > in the other way. > Thanks, > > Andre > > > > ----- Original Message ----- > From: "Dragos" <dragos.delcea@farmexim.ro> > To: "Andre Klocke" <andre.klocke@stb-datenservice.de>; "Samba Mailingliste" > <samba@lists.samba.org> > Sent: Monday, November 19, 2001 12:25 PM > Subject: Re: Kernel Oplocks > > > On Monday 19 November 2001 11:21 am, Andre Klocke wrote: > > > Hallo. > > > > > > We want to use the switch "kernel oplocks = yes". It only works with > > > linux-2.4.x. Do i have to configure somthing in the Kernel to suppotr > > this > > > > feature, or is it supported automatically???? > > > > > > Thanks, Andre > > > > it is supported automatically on a 2.4 kernel, but beware, as there are > > problems reported with samba 2.2 releases (I haven't yet tried 2.2.2, but > > until 2.2.1a it misbehaves) with kernel oplocks on. > > > > cheers, dragosI had problems with logon scripts that were longer than 8.3 standard dos filename; the misfunction was erratic, for some hosts worked, for some, not, they were all the same win98, so the problem was very hard to track down; the day I changed it to no, it worked flawlessly ever since... anyway, as I understand, this functionality was most needed for those who had samba shares on a NFS mounted directories, or for those who have access from samba and linux simoultaneousely (is this a word!?) dragos