Date: Fri, 8 Feb 2002 11:13:14 +0200 (EET) From: Victor Ivanov <v0rbiz@icon.bg> To: FreeBSD-gnats-submit@freebsd.org Subject: conf/34729: treat smbfs as network file system in /etc/rc Message-ID: <200202080913.g189DE601729@dev.icon.bg>
next in thread | raw e-mail | index | archive | help
>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: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Feb 08 01:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202080913.g189DE601729>
