From owner-freebsd-stable Thu Jan 11 9:51:37 2001 Delivered-To: freebsd-stable@freebsd.org Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by hub.freebsd.org (Postfix) with ESMTP id EC01C37B400; Thu, 11 Jan 2001 09:51:18 -0800 (PST) Received: from localhost (marck@localhost) by woozle.rinet.ru (8.11.1/8.11.0) with ESMTP id f0BHpFR02360; Thu, 11 Jan 2001 20:51:16 +0300 (MSK) (envelope-from marck@rinet.ru) X-Authentication-Warning: woozle.rinet.ru: marck owned process doing -bs Date: Thu, 11 Jan 2001 20:51:15 +0300 (MSK) From: Dmitry Morozovsky To: sheldonh@freebsd.org Cc: stable@freebsd.org Subject: /etc/rc mounting NFS bug Message-ID: X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello there, I found small bug (actually, just cosmetic) in NFS mounting in /etc/rc (at least in 4-stable branch). If you mount tree of NFSes, then call to `mount -d' in # Mount NFS filesystems if present in /etc/fstab case "`mount -d -a -t nfs`" in *mount_nfs*) echo -n "Mounting NFS file systems" mount -a -t nfs echo . ;; esac leads to nasty error message like mount: /pub/.1: No such file or directory (my NFS mounts are kucha:/ar/pub /pub nfs ro,tcp,soft,bg,intr 0 0 kucha:/ar/pub/.1 /pub/.1 nfs ro,tcp,soft,bg,intr 0 0 kucha:/ar/pub/.2 /pub/.2 nfs ro,tcp,soft,bg,intr 0 0 ) There are some ways to fix this; however, the simplest would be --- rc.orig Tue Sep 26 04:04:27 2000 +++ rc Thu Jan 11 20:49:35 2001 @@ -223,7 +223,7 @@ esac # Mount NFS filesystems if present in /etc/fstab -case "`mount -d -a -t nfs`" in +case "`mount -d -a -t nfs 2> /dev/null`" in *mount_nfs*) echo -n "Mounting NFS file systems" mount -a -t nfs --- because at lease top mounting point directory must exist for successive mounts ;-) Thanks for your attention; please let me know if I miss something vital :) Sincerely, D.Marck [DM5020, DM268-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message