[KLUG Members] Re: Quick samba q

Bryan J. Smith members@kalamazoolinux.org
02 Feb 2002 18:06:00 -0500


On Sat, 2002-02-02 at 14:43, Adam Bultman wrote:
> Check this out:  Same configuration:  Reboot into stock kernel,
> and samba works.  So, I recompile MY kernel (2.4.16) again, and
> add more.  Doesn't work.  Recompile again, adding just about
> everything I would ever need. No dice.  Get linux-2.4.17 from
> another box, compile it like I do normally, and it worksl ike a
> gem.  I gues it's just one of those idiosyncrasies of linux.

Or you're just toggling an option that Linux needs.  I mean, did you
bother to compare your configuration files between "stock" and
"custom"???

One thing I can think of is the fact that Samba 2.2 uses kernel oplocks
if you are running the 2.4 kernel.  If you have "kernel oplocks"
enabled, but your kernel does not have certain network set, yeah, that
would screw things up.

BTW, the "interfaces" line was just a check that you were allowing
127.0.0.1 (loopback) access.  Oplocks (among other things) require
loopback access, and its the most common issue with oplocks (because
people enable "bind interfaces only = yes", but forget to put 127.0.0.1
in the "interfaces" line).

Again, there are hundreds of other settings that could be the problem. 
People just start rebooting and thinking that will fix it, or start
doing everything _outside_ of the smb.conf.

If you would have just renamed your smb.conf and pulled up SWAT to set
the defaults, SWAT _would_have_detected_ that kernel oplocks were not
available and set it to no.

But at least you found the problem (your custom kernels).  Again, I'm
not certain, but I bet you were compiling your kernel without some
specific settings that prevented kernel oplocks from working.  But it
could be something else.

-- Bryan

P.S.  All the stock RedHat kernel configurations are in
/usr/src/linux/configs.

-- 
Bryan J. Smith, Engineer        mailto:b.j.smith@ieee.org
AbsoluteValue Systems, Inc.     http://www.linux-wlan.org
SmithConcepts, Inc.          http://www.SmithConcepts.com
---------------------------------------------------------
1999 IRS Data:  The top 1% of income earners pay over 36%
of the taxes, but have less than 20% of the total income.