From marck@woozle.rinet.ru  Sun Apr 15 09:02:52 2001
Return-Path: <marck@woozle.rinet.ru>
Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68])
	by hub.freebsd.org (Postfix) with ESMTP id D900137B422
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 15 Apr 2001 09:02:51 -0700 (PDT)
	(envelope-from marck@woozle.rinet.ru)
Received: (from marck@localhost)
	by woozle.rinet.ru (8.11.2/8.11.2) id f3FG2mi51226;
	Sun, 15 Apr 2001 20:02:48 +0400 (MSD)
	(envelope-from marck)
Message-Id: <200104151602.f3FG2mi51226@woozle.rinet.ru>
Date: Sun, 15 Apr 2001 20:02:48 +0400 (MSD)
From: marck@rinet.ru
Reply-To: marck@rinet.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: cosmetic patch to /etc/rc (mounting nested NFS partitions)
X-Send-Pr-Version: 3.2

>Number:         26597
>Category:       bin
>Synopsis:       cosmetic patch to /etc/rc (mounting nested NFS partitions)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    yar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 15 09:10:01 PDT 2001
>Closed-Date:    Wed May 30 06:15:34 PDT 2001
>Last-Modified:  Wed May 30 06:16:45 PDT 2001
>Originator:     Dmitry Morozovsky
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Cronyx Plus Ltd.
>Environment:

	Automatic mount of NFS filesystems with at lease one mount point
inside NFS tree


>Description:

When mounting automatically nested NFS filesystems, such as at my system:

xxx:/pub on /ar/pub (nfs, nodev, nosuid, read-only)
xxx:/pub/.1 on /ar/pub/.1 (nfs, nodev, nosuid, read-only)
xxx:/pub/.2 on /ar/pub/.2 (nfs, nodev, nosuid, read-only)

/etc/rc complaints about ono-existing directory when testing.

The simpleast way to avoid these complaints is redirect testing 
`mount -d' to /dev/null

>How-To-Repeat:

Add e.g. /pub and /pub/dubdir to your /etc/fstab pointing to real NFS
available FSes. After reboot complaint about "non-existing directory" will
be issued just before the sentense "Mounting NFS file systems:"

>Fix:

--- src/etc/rc.orig	Thu Feb  8 16:27:05 2001
+++ src/etc/rc	Sat Feb 10 18:56:21 2001
@@ -251,7 +251,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

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: yar 
State-Changed-When: Sun May 27 15:50:54 PDT 2001 
State-Changed-Why:  
Committed to -current, thanx! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=26597 
Responsible-Changed-From-To: freebsd-bugs->yar 
Responsible-Changed-By: yar 
Responsible-Changed-When: Sun May 27 15:51:50 PDT 2001 
Responsible-Changed-Why:  
I'll fix it. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=26597 
State-Changed-From-To: analyzed->closed 
State-Changed-By: yar 
State-Changed-When: Wed May 30 06:15:34 PDT 2001 
State-Changed-Why:  
Now fixed both in -current and -stable. Thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=26597 
>Unformatted:
