From: "Steve French" <smfrench@gmail.com>
To: "Jan Engelhardt" <jengelh@computergmbh.de>
Cc: "Adrian Bunk" <bunk@kernel.org>,
sfrench@samba.org, samba-technical@lists.samba.org,
linux-kernel@vger.kernel.org
Subject: Re: [2.6 patch] remove smbfs
Date: Wed, 30 Jan 2008 19:23:44 -0600 [thread overview]
Message-ID: <524f69650801301723w2f186f73h2cb30a6a30793def@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0801302003560.13036@fbirervta.pbzchgretzou.qr>
On Jan 30, 2008 1:05 PM, Jan Engelhardt <jengelh@computergmbh.de> wrote:
>
> On Jan 30 2008 12:53, Steve French wrote:
> >I have mounted to Windows98 a few months ago with no problems (other
> >than a few restrictions like you can't set the file times via utimes).
> > For mounts to Windows98 note that you have to specify the server
> >netbios name on the mount (since it is not the same as the DNS name).
> >In your example your would need to specify "servernetbiosname=WIN98"
> >in the mount options (until mount.cifs autoretries with
> >servernetbiosname assumed to be the beginning of the UNC name - note
> >that later servers have a dummy netbios name that is used so this
> >mount option is only needed for OS/2 and Win9x).
>
> Ok that works. I had tried "netbiosname" but not "servernetbiosname"
> (only fuzzy memories from the last win98 encounter and the suggestion
> to use netbiossomething).
>
> I think servernetbiosname should implicitly be assumed to be the
> same as the //hostpart/ when it's not explicitly specified, no?
Unfortunately, it is not quite that easy since there is a default
"dummy" netbiosname that you are supposed to specify.
The default netbios name is supposed to be "*SMBSERVER" in the RFC1001
session init request (this allows you to connect to the default
netbiosname on the target ip address), but for servers older than
about 1997, and Windows9x, that name is not supported by default and
that field in the session initialize request must contain the actual
netbiosname. Although using the host name of the server is a good
first guess - the netbiosname does not have to match the tcp host name
(and often differs in more than simply being uppercase and limited to
15 bytes).
There is retry which can be tried. When the server does not listen on
port 445 and mount fails to *SMBSERVER on port 139 (and retry using
the uppercased tcp name as the netbios name fails) - we can try to do
an "adapter status" rfc1001 call to the ip address of the target and
pick the first netbiosname (or at least the first one that ends with
the server suffix - ie a byte of 0x20 for byte 16 of the netbios
name). This complicates the mount.cifs helpers retry logic and
adding rfc1001 adapter status code into the kernel also would be a few
hundred lines of kernel code for little benefit if any for current
servers, but it could be done. Simply adding the one retry (for
failed mounts using servernetbiosname=<target-host-name> would
probably take care of most cases.
--
Thanks,
Steve
next prev parent reply other threads:[~2008-01-31 1:23 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-28 22:08 Adrian Bunk
2008-01-28 22:55 ` Steve French
2008-01-30 18:27 ` Jan Engelhardt
2008-01-30 18:53 ` Steve French
2008-01-30 19:05 ` Jan Engelhardt
2008-01-31 1:23 ` Steve French [this message]
2008-01-31 11:18 ` Jan Engelhardt
2008-01-31 2:03 ` David Newall
2008-01-31 2:23 ` Jan Engelhardt
2008-01-31 2:54 ` Steve French
2008-01-30 20:52 ` Guenter Kukkukk
2008-01-30 21:16 ` Guenter Kukkukk
2008-01-30 22:41 ` Jeff Layton
2008-01-30 22:58 ` Adrian Bunk
2008-01-31 0:34 ` Jeff Layton
2008-01-31 0:47 ` Adrian Bunk
2008-01-31 1:13 ` Jeff Layton
2008-01-31 1:30 ` Steve French
2008-01-31 8:26 ` Radoslaw Szkodzinski
2008-01-31 9:51 ` Andi Kleen
2008-01-31 1:34 ` Steve Langasek
2008-01-31 2:58 ` Steve French
2008-01-31 0:58 ` Lennart Sorensen
2008-02-05 8:18 ` Andrew Morton
2008-02-05 11:31 ` Jeff Layton
2008-02-05 18:17 ` Andrew Morton
2008-02-05 14:04 ` Alejandro Riveira Fernández
2008-02-05 14:58 ` Steve French
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=524f69650801301723w2f186f73h2cb30a6a30793def@mail.gmail.com \
--to=smfrench@gmail.com \
--cc=bunk@kernel.org \
--cc=jengelh@computergmbh.de \
--cc=linux-kernel@vger.kernel.org \
--cc=samba-technical@lists.samba.org \
--cc=sfrench@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®