From nobody@FreeBSD.org  Thu Jan 24 19:19:01 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 72FBB37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Jan 2002 19:19:00 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g0P3J0C56428;
	Thu, 24 Jan 2002 19:19:00 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201250319.g0P3J0C56428@freefall.freebsd.org>
Date: Thu, 24 Jan 2002 19:19:00 -0800 (PST)
From: Troy Compton <troyc@tacsoft.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: auto mount smbfs in /etc/fstab AFTER network startup (a la NFS)
X-Send-Pr-Version: www-1.0

>Number:         34247
>Category:       misc
>Synopsis:       auto mount smbfs in /etc/fstab AFTER network startup (a la NFS)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ceri
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 24 19:20:00 PST 2002
>Closed-Date:    Sun Jun 08 11:02:33 PDT 2003
>Last-Modified:  Sun Jun 08 11:02:33 PDT 2003
>Originator:     Troy Compton
>Release:        4.5-RC (#3)
>Organization:
>Environment:
FreeBSD corellia.tacsoft.com 4.5-RC FreeBSD 4.5-RC #0: Thu Jan 242 0:20:22 EST 2002 root@corellia.tacsoft.com:/usr/obj/usr/src/sys/CORELLIA  i386
>Description:
Similar to NFS file systems defined for automatic mounting in /etc/fstab, smbfs file systems must be mounted after the network has been started.
>How-To-Repeat:
1) Create /etc/nsmb.conf to contain the information necessary to connect to the SMB share (including the password).
2) chown root:wheel /etc/nsmb.conf 
   chmod 600 /etc/nsmb.conf  (password in clear text!)
3) Add an entry to /etc/fstab defining the mount point and the SMB share
4) Reboot.


>Fix:
patch rc rc.smbfs.diff
----------------------

197,198c197,198
< # otherwise mount everything except nfs filesystems.
<       mount -a -t nonfs
---
> # otherwise mount everything except nfs & smbfs filesystems.
>       mount -a -t nonfs,smbfs
311a312,320
> # Mount smbfs filesystems if present in /etc/fstab
> case "`mount -d -a -t smbfs 2> /dev/null`" in
> *mount_smbfs*)
>       echo -n 'Mounting SMB file systems:'
>       mount -a -t smbfs
>       echo '.'
>       ;;
> esac
>

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sheldon 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Fri Jan 25 02:30:34 PST 2002 
Responsible-Changed-Why:  
Looks like one for sheldon. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34247 
Responsible-Changed-From-To: sheldon->sheldonh 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Fri Jan 25 02:31:32 PST 2002 
Responsible-Changed-Why:  
It would help if I used Sheldon's username. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34247 
State-Changed-From-To: open->analyzed 
State-Changed-By: sheldonh 
State-Changed-When: Fri Jan 25 02:45:44 PST 2002 
State-Changed-Why:  
Fixed with the introduction of a more generalized mechanism for 
delayed automounting of network filesystems. 

The fix will be merged onto the RELENG_4 branch when someone can 
test that it doesn't break PXE booting under STABLE.  Anyone  
interested in doing such testing should see how the rc.conf 
variable extra_netfs_types is used in CURRENT. 

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

From: Sheldon Hearn <sheldonh@starjuice.net>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: misc/34247: auto mount smbfs
Date: Fri, 25 Jan 2002 12:51:18 +0200

 This is fixed in -CURRENT, using a more general solution.  I'll find out
 whether I got permission to MFC this, and if so, why I didn't. :-)
 
 Ciao,
 Sheldon.

From: Sheldon Hearn <sheldonh@starjuice.net>
To: bug-followup@freebsd.org
Cc: rwatson@FreeBSD.org
Subject: Re: misc/34247: auto mount smbfs 
Date: Fri, 25 Jan 2002 12:55:13 +0200

 On Fri, 25 Jan 2002 12:51:18 +0200, Sheldon Hearn wrote:
 
 > This is fixed in -CURRENT, using a more general solution.  I'll find out
 > whether I got permission to MFC this, and if so, why I didn't. :-)
 
 Okay, a quick scan of my archived mail for December shows that Robert
 Watson (copied) expressed concerns that delayed automounting of network
 filesystems might break PXE booting.
 
 I can't test PXE stuff myself, and Robert said he'd try to, but was
 short on spare time.  I haven't heard about it since.
 
 Robert?  It'd be pretty cool if we could get delayed automounting of
 network filesystems in before 4.5-RELEASE.  In the meantime, there are
 appropriate warnings in the right places, so don't stress if you still
 don't have time for this.
 
 Ciao,
 Sheldon.

From: Robert Watson <rwatson@freebsd.org>
To: Sheldon Hearn <sheldonh@starjuice.net>
Cc: bug-followup@freebsd.org
Subject: Re: misc/34247: auto mount smbfs 
Date: Tue, 5 Feb 2002 11:19:02 -0500 (EST)

 Unfortunately, I still haven't had a chance to test this at all, since my
 net-booted boxes don't have access to smb-serving hosts.  However, I've
 integ'd my MAC tree, so it seems not to hurt netbooting with NFS, so
 should be safe from that perspective.  Feel free to MFC if you're
 comfortable with it.
 
 Robert N M Watson             FreeBSD Core Team, TrustedBSD Project
 robert@fledge.watson.org      NAI Labs, Safeport Network Services
 
 On Fri, 25 Jan 2002, Sheldon Hearn wrote:
 
 > 
 > 
 > On Fri, 25 Jan 2002 12:51:18 +0200, Sheldon Hearn wrote:
 > 
 > > This is fixed in -CURRENT, using a more general solution.  I'll find out
 > > whether I got permission to MFC this, and if so, why I didn't. :-)
 > 
 > Okay, a quick scan of my archived mail for December shows that Robert
 > Watson (copied) expressed concerns that delayed automounting of network
 > filesystems might break PXE booting.
 > 
 > I can't test PXE stuff myself, and Robert said he'd try to, but was
 > short on spare time.  I haven't heard about it since.
 > 
 > Robert?  It'd be pretty cool if we could get delayed automounting of
 > network filesystems in before 4.5-RELEASE.  In the meantime, there are
 > appropriate warnings in the right places, so don't stress if you still
 > don't have time for this.
 > 
 > Ciao,
 > Sheldon.
 > 
 

From: Sheldon Hearn <sheldonh@starjuice.net>
To: Robert Watson <rwatson@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: misc/34247: auto mount smbfs 
Date: Mon, 11 Feb 2002 11:27:51 +0200

 On Tue, 05 Feb 2002 11:19:02 EST, Robert Watson wrote:
 
 > Unfortunately, I still haven't had a chance to test this at all, since my
 > net-booted boxes don't have access to smb-serving hosts.  However, I've
 > integ'd my MAC tree, so it seems not to hurt netbooting with NFS, so
 > should be safe from that perspective.  Feel free to MFC if you're
 > comfortable with it.
 
 Hi Robert,
 
 Now that I try to apply the patch to RELENG_4, I see the problem. :-)
 
 The diskless stuff is handled very differently in RELENG_4.  I'm not
 really sure how to handle this without delving deeply into the diskless
 stuff, which I really don't have the means to test.
 
 Looks like this PR will need the attention of a diskless user with
 clue for an MFC to be justified.
 
 Ciao,
 Sheldon.
State-Changed-From-To: analyzed->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Mon Feb 11 01:40:50 PST 2002 
State-Changed-Why:  
Merging the change onto the RELENG_4 branch is made tricky by 
the different handling of diskless booting on that branch. 

I can't test diskless booting, nor the impact of this change on 
it, so what's required now is feedback from diskless users on 
how the delayed network fs mounting support should be implemented. 


Responsible-Changed-From-To: sheldonh->freebsd-bugs 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Feb 11 01:40:50 PST 2002 
Responsible-Changed-Why:  
Since I can't test this for RELENG_4, there's no sense in me 
hogging feedback.  Thrown open to the floor. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34247 
State-Changed-From-To: feedback->closed 
State-Changed-By: ceri 
State-Changed-When: Sun Jun 8 11:02:31 PDT 2003 
State-Changed-Why:  
Feedback timeout (6 months or more). 
I will handle any feedback that this closure generates. 


Responsible-Changed-From-To: freebsd-bugs->ceri 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Sun Jun 8 11:02:31 PDT 2003 
Responsible-Changed-Why:  
Feedback timeout (6 months or more). 
I will handle any feedback that this closure generates. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34247 
>Unformatted:
