Re: SMBfs problems

Michael H. Warfield (mhw@wittsend.com)
Wed, 24 Mar 1999 14:35:31 -0500 (EST)


Matthew Vanecek enscribed thusly:

[...]

> I've also had similar problems, using kernel 2.2.x/samba 2.0.2,
> connecting to NT 4.0sp4 WS. Usually, I get an IO error, or something
> similar, which according to the docs was attributed to a keepalive
> error. Also, for me, the problem is only one-way. Going from Linux to
> NT, the smb share times out, usually fairly quickly (less than 1/2
> hour). Going from NT to Linux, it works fine. Don't know if that last
> matters, though.

Get Samba 2.0.3. I've got several fixes for related problems
in that version. The one with 2.0.2 was definitely broken, especially
if it prompted you for the password.

> Hmm, /var/log/messages has a strikingly similar error message to the one
> above:
> Mar 1 08:43:03 reliant kernel: smb_dont_catch_keepalive:
> server->data_ready == NULL

> I can see where this is defined in smbfs/sock.c, but what conditions can
> cause this error to be generated? When we can determine that, we should
> be able to fix the problem.

Usually, it's a session disconnect. The smbmount daemon is suppose
to wake back up and reconnect the session on the next request. One problem
was that it didn't cache the password if you didn't supply it on the command
line or in an environment variable. Since it had disconnected from the
terminal, it could no longer prompt for your password and it got lost.

> Of course, that assumes that the problem is with the kernel and not with
> samba 2.0.x.
> --
> Matthew Vanecek
> Studies in Business Computers at the University of North Texas
> http://www.unt.edu/bcis
> *****************************************************************
> Visit my Website at http://people.unt.edu/~mev0003
> *****************************************************************
> For 93 million miles, there is nothing between the sun and my shadow
> except me. I'm always getting in the way of something...

Mike

-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw@WittsEnd.com
  (The Mad Wizard)      |  (770) 925-8248   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/