From root@dev.icon.bg  Fri Feb  8 01:13:05 2002
Return-Path: <root@dev.icon.bg>
Received: from dev.icon.bg (dev.icon.bg [62.176.80.181])
	by hub.freebsd.org (Postfix) with ESMTP id F236637B41D
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Feb 2002 01:13:02 -0800 (PST)
Received: (from root@localhost)
	by dev.icon.bg (8.11.6/8.11.6) id g189DE601729;
	Fri, 8 Feb 2002 11:13:14 +0200 (EET)
	(envelope-from root)
Message-Id: <200202080913.g189DE601729@dev.icon.bg>
Date: Fri, 8 Feb 2002 11:13:14 +0200 (EET)
From: Victor Ivanov <v0rbiz@icon.bg>
Reply-To: Victor Ivanov <v0rbiz@icon.bg>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: treat smbfs as network file system in /etc/rc
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         34729
>Category:       conf
>Synopsis:       treat smbfs as network file system in /etc/rc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 08 01:20:01 PST 2002
>Closed-Date:    Wed Mar 30 00:19:13 GMT 2005
>Last-Modified:  Wed Mar 30 00:19:13 GMT 2005
>Originator:     Victor Ivanov
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
ICON Ltd. Bulgaria
>Environment:
System: FreeBSD dev.icon.bg 4.5-STABLE FreeBSD 4.5-STABLE #7: Mon Feb 4 13:05:20 EET 2002 root@dev.icon.bg:/usr/obj/usr/src/sys/ICON i386


	
>Description:
/etc/rc does not treat SMBFS file systems as network. Adding an entry in
/etc/fstab without the 'noauto' option with type 'smbfs' will lead to
error -- /etc/rc tries to mount a network file system before initializing
the network. SMBFS should be trated as NFS.
>How-To-Repeat:
Example in /etc/fstab:
//v0rbiz@icon/v0rbiz    /mnt/icon/v0rbiz smbfs  rw              0       0

>Fix:
Here's a patch which duplicates the stuff done for NFS in /etc/rc:

--- src/etc/rc.orig	Fri Feb  8 11:00:01 2002
+++ src/etc/rc	Fri Feb  8 11:06:40 2002
@@ -200,8 +200,8 @@
 if [ -n "${diskless_mount}" -a -r "${diskless_mount}" ]; then
 	sh ${diskless_mount}
 else
-# otherwise mount everything except nfs filesystems.
-	mount -a -t nonfs
+# otherwise mount everything except nfs and smbfs filesystems.
+	mount -a -t nonfs,smbfs
 fi
 
 case $? in
@@ -311,6 +311,15 @@
 *mount_nfs*)
 	echo -n 'Mounting NFS file systems:'
 	mount -a -t nfs
+	echo '.'
+	;;
+esac
+
+# Mount SMBFS filesystems if present in /etc/fstab
+case "`mount -d -a -t smbfs 2> /dev/null`" in
+*mount_smbfs*)
+	echo -n 'Mounting SMBFS file systems:'
+	mount -a -t smbfs
 	echo '.'
 	;;
 esac
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sheldonh 
Responsible-Changed-By: cjc 
Responsible-Changed-When: Sun Mar 17 02:26:25 PST 2002 
Responsible-Changed-Why:  
Over to the SMBFS man. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34729 

From: Sheldon Hearn <sheldonh@starjuice.net>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: conf/34729: treat smbfs as network file system in /etc/rc 
Date: Mon, 18 Mar 2002 16:29:51 +0200

 On Sun, 17 Mar 2002 02:26:54 PST, cjc@FreeBSD.org wrote:
 
 > Synopsis: treat smbfs as network file system in /etc/rc
 > 
 > Responsible-Changed-From-To: freebsd-bugs->sheldonh
 > Responsible-Changed-By: cjc
 > Responsible-Changed-When: Sun Mar 17 02:26:25 PST 2002
 > Responsible-Changed-Why: 
 > Over to the SMBFS man.
 
 A more general solution has already been implemented in src/etc/rc, revs
 1.290 and 1.291, on the HEAD branch (-CURRENT).
 
 However, I can't merge the change because of differences in the handling
 of network booting in RELENG_4 (4.5-STABLE).  I can't test network
 booting, so I'm at the mercy of anyone who can.
 
 If you're in a position to test network booting and see whether it
 affects the delayed network filesystem mount support, I'd love to hear
 from you.
 
 By the way, I did keep folks like you in mind with a note in fstab(5)
 for 4.5-RELEASE, which was the first release to include the userland
 components of smbfs in the base system:
 
   If the option ``noauto'' is specified, the filesystem will not be
   automatically mounted at system startup.  This is recommended for all
   remote filesystems other than NFS, since only NFS mounts are delayed
   until after network initialization by the rc startup scripts.
 
 :-)
 
 The delayed network filesystem mount support allowed me to change that
 paragraph as follows in -CURRENT:
 
   If the option ``noauto'' is specified, the filesystem will not be
   automatically mounted at system startup.  Note that, for network
   filesystems of third party types (i.e. types supported by additional
   software not included in the base system) to be automatically mounted
   at system startup, the extra_netfs_types rc.conf(5) variable must be
   used to extend the rc(8) startup script's list of network filesystem
   types.
 
 Ciao,
 Sheldon.
Responsible-Changed-From-To: sheldonh->freebsd-bugs 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Feb 17 03:19:07 PST 2004 
Responsible-Changed-Why:  
Release. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=3170 
Responsible-Changed-From-To: sheldonh->freebsd-bugs 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Feb 17 03:19:07 PST 2004 
Responsible-Changed-Why:  
Release. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26869 
Responsible-Changed-From-To: sheldonh->freebsd-bugs 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Feb 17 03:19:07 PST 2004 
Responsible-Changed-Why:  
Release. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=33672 
Responsible-Changed-From-To: sheldonh->freebsd-bugs 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Feb 17 03:19:07 PST 2004 
Responsible-Changed-Why:  
Release. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23912 
Responsible-Changed-From-To: sheldonh->freebsd-bugs 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Feb 17 03:19:07 PST 2004 
Responsible-Changed-Why:  
Release. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34316 
Responsible-Changed-From-To: sheldonh->freebsd-bugs 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Feb 17 03:19:07 PST 2004 
Responsible-Changed-Why:  
Release. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34729 

From: Matteo Riondato <rionda@gufi.org>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: conf/34729: treat smbfs as network file system in /etc/rc
Date: Tue, 29 Mar 2005 21:42:34 +0200

 --avNtfD0ffNO6L/9g
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 As another reply in the Audit Trail suggests, this was fixed back in
 2002 and there is an entry in fstab(5) which explains how to solve
 this problem.
 IMHO this PR can be closed
 Best Regards
 --=20
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 --avNtfD0ffNO6L/9g
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCSa+p2Mp4pR7Fa+wRApsdAJ9KPwnH+LHcvzUvaWXYJBLyHpnzlACeNUBt
 eNF0QscfdhwI+cjR45y6rRA=
 =pPc0
 -----END PGP SIGNATURE-----
 
 --avNtfD0ffNO6L/9g--
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Mar 30 00:18:53 GMT 2005 
State-Changed-Why:  
Apparently fixed a long time ago. 

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