From owner-freebsd-current@FreeBSD.ORG Wed Jun 4 15:57:13 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF22D37B401; Wed, 4 Jun 2003 15:57:13 -0700 (PDT) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id B321E43F3F; Wed, 4 Jun 2003 15:57:12 -0700 (PDT) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (ua9v6c1twxfihs2w@dsl-133-253.aei.ca [66.36.133.253]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id h54MvAg17065; Wed, 4 Jun 2003 18:57:10 -0400 (EDT) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id 785643C6; Wed, 4 Jun 2003 18:57:06 -0400 (EDT) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Wed, 4 Jun 2003 18:57:09 -0400 Date: Wed, 4 Jun 2003 18:57:09 -0400 From: The Anarcat To: current@freebsd.org Message-ID: <20030604225709.GA808@lenny.anarcat.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.5.3i cc: re@freebsd.org Subject: SMBFS automounting broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2003 22:57:14 -0000 Hi! Recently, I noticed that my samba shares were not automounted on boot. What I understand of it is that netfs_types is defined in rc.d/mountcritlocal, but not in rc.d/mountcritremote, which makes the code: # Mount other network filesystems if present in /etc/fstab. for i in ${networkfs_types}; do fstype=3D${i%:*} fsdecr=3D${i#*:} [ "${fstype}" =3D "nfs" ] && continue case "`mount -d -a -t ${fstype}`" in *mount_${fstype}*) echo -n "Mounting ${fsdecr} file systems:" mount -a -t ${fstype} echo '.' ;; esac done does strictly nothin, since networkfs_types is empty. A workaround would be the following patch, but I'm sure there's a better way to do this, maybe by putting the networkfs_types in defaults/rc.conf? --- mountcritremote.orig Wed Jun 4 18:48:31 2003 +++ mountcritremote Wed Jun 4 18:55:55 2003 @@ -55,6 +55,9 @@ mount -a -t nfs echo '.' =20 + # Set up the list of network filesystem types for which mo= unting + # should be delayed until after network initialization. + networkfs_types=3D'nfs:NFS smbfs:SMB portalfs:PORTAL' # Mount other network filesystems if present in /etc/fstab. for i in ${networkfs_types}; do fstype=3D${i%:*} The patch to rc.conf would be very similar, of course. I think this should be rushed in 5.1 so I CC: the REs. A. --=20 Seul a un caract=E8re scientifique ce qui peut =EAtre r=E9fut=E9. Ce qui n'= est pas r=E9futable rel=E8ve de la magie ou de la mystique. - Popper, Karl