From aaron@meta.lo-res.org  Wed Dec 19 13:20:46 2001
Return-Path: <aaron@meta.lo-res.org>
Received: from meta.lo-res.org (meta.lo-res.org [195.58.189.92])
	by hub.freebsd.org (Postfix) with ESMTP id 2136937B416
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 19 Dec 2001 13:20:45 -0800 (PST)
Received: (from aaron@localhost)
	by meta.lo-res.org (8.11.6/8.11.6) id fBJLKh644521;
	Wed, 19 Dec 2001 22:20:43 +0100 (CET)
	(envelope-from aaron)
Message-Id: <200112192120.fBJLKh644521@meta.lo-res.org>
Date: Wed, 19 Dec 2001 22:20:43 +0100 (CET)
From: aaron <aaron@lo-res.org>
Reply-To: aaron <aaron@lo-res.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mount_smbfs
X-Send-Pr-Version: 3.113
X-GNATS-Notify: ru

>Number:         33016
>Category:       bin
>Synopsis:       mount_smbfs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sheldonh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 19 13:30:01 PST 2001
>Closed-Date:    Mon Jan 21 14:37:11 PST 2002
>Last-Modified:  Mon Jan 21 14:38:13 PST 2002
>Originator:     aaron
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
lo-res
>Environment:
System: FreeBSD meta.lo-res.org 4.4-STABLE FreeBSD 4.4-STABLE #2: Mon Oct 29 22:02:05 CET 2001 root@meta.lo-res.org:/usr/people/scratch/usr/people/src/sys/meta i386


	
>Description:
	mount_smbfs will not work with smbfs module unless smbfs module
        loads libmchain module.

>How-To-Repeat:
	do the following: compile a -STABLE kernel without LIBMCHAIN
	and without NETSMB options. Include the LIBICONV option 
	(this does not seem to compile as module, ok).

	Now mount_smbfs some filesystem.
	It will fail with error message: 
		smbfs: vfsload(smbfs): Exec format error
	then kldload libmchain
	re-try mount_smbfs command... bingo everything works again.

	As a side note: If I compile options NETSMB, option LIBMCHAIN
	and option LIBICONV statically into the kernel then 
	mount_smbfs will fail with: smbfs: vfsload(smbfs): File exists.

	Seems like the vfsload will try to load the module but if its already
	there statically - it does not detect this fact and gives up.
	I recon some detection code would be in place here. 



>Fix:

	see ideas on how to fix it above.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sheldonh 
Responsible-Changed-By: ru 
Responsible-Changed-When: Thu Dec 20 02:03:07 PST 2001 
Responsible-Changed-Why:  
Sheldon's last commits may have fixed part of this PR. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33016 
State-Changed-From-To: open->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Thu Dec 20 02:22:55 PST 2001 
State-Changed-Why:  
1) libiconv is now available as a kernel loadable module in the latest 
-STABLE.  Please update your system and try again. 

2) mount_smbfs does what all the other mount_* utilities do with 
respect to vfsload(), so if there's a problem with vfsload(), 
it'll need to be addressed globally.  It's probably beyond the 
scope of what I can manage right now, so I'll probably close this 
PR once you've confirmed that the first issue is resolved. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33016 
State-Changed-From-To: feedback->closed 
State-Changed-By: sheldonh 
State-Changed-When: Mon Jan 7 05:29:45 PST 2002 
State-Changed-Why:  
The smbfs-specific problem reported by the originator is resolved. 
Another problem, namely suspected weirdness in vfsload(), should 
be addressed in a new PR when more information is available. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33016 
State-Changed-From-To: closed->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Wed Jan 9 03:46:18 PST 2002 
State-Changed-Why:  
Please try out the patch in kern/33625 and let me know whether it 
solves your problem. 

Please copy your feedback to <freebsd-gnats-submit@FreeBSD.org>, 
using the subject line of this message. 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33016 

From: Sheldon Hearn <sheldonh@starjuice.net>
To: aaron@lo-res.org
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/33016: mount_smbfs 
Date: Wed, 09 Jan 2002 13:59:59 +0200

 On Wed, 09 Jan 2002 03:48:02 PST, sheldonh@FreeBSD.org wrote:
 
 > State-Changed-From-To: closed->feedback
 > State-Changed-By: sheldonh
 > State-Changed-When: Wed Jan 9 03:46:18 PST 2002
 > State-Changed-Why: 
 > Please try out the patch in kern/33625 and let me know whether it
 > solves your problem.
 
 Note that "your problem" here refers to the second part of the problem,
 which I previously miscredited to a general vfsload() problem.
 
 > Please copy your feedback to <freebsd-gnats-submit@FreeBSD.org>,
 > using the subject line of this message.
 
 This still applies. :-)
 
 Ciao,
 Sheldon.
State-Changed-From-To: feedback->closed 
State-Changed-By: sheldonh 
State-Changed-When: Mon Jan 21 14:37:11 PST 2002 
State-Changed-Why:  
In this case, feedback was more of a formality than anything else. 
We know the problem's solved. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33016 
>Unformatted:
