Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 1999 06:20:02 -0700 (PDT)
From:      Jan Conrad <conrad@th.physik.uni-bonn.de>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/12376: When mounting NFS dirs, /etc/rc doesn't give sensible error messages
Message-ID:  <199908101320.GAA37207@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/12376; it has been noted by GNATS.

From: Jan Conrad <conrad@th.physik.uni-bonn.de>
To: Sheldon Hearn <sheldonh@uunet.co.za>
Cc:  
Subject: Re: misc/12376: When mounting NFS dirs, /etc/rc doesn't give sensible
 error messages
Date: Fri, 30 Jul 1999 14:05:51 +0200 (CEST)

 Hi Sheldon,
 
 On Thu, 29 Jul 1999, Sheldon Hearn wrote:
 
 > 
 > Hi Jan,
 > 
 > Have you taken a crack at the problem you reported in PR 12376 ?  I'm
 > curious because nobody else has commented on the PR. If you've lost
 > interest, let me know and I'll close the PR.
 
 I am sorry for my late answer, but I was vary busy with the STRINGS'99
 conference (I am a theoretical physicist) and. in addition, I first wanted
 to find the real bug (see kern/12609).
 
 I came to the following conclusions:
 
 First of all, when you just issue a mount from the command line, the error
 messages are quite ok, since you usually know what the mountpoint is etc..
 And I am pretty sure that unix users don't want to see error messages
 telling them something they allready know (at least this is my
 impression).
 
 The problem appears when you mount automatically at boottime. Since the
 '-v' flag isn't appreciated, and in addition, it is not handed over to say
 mount_nfs, where sould mount_nfs know from that it should produce a longer
 message??? One could invent a new option, but that's not an issue, I
 think.
 
 One thing, however, could be changed: when mount_nfs goes to
 background, because bg is set and some error occures, it could issue a
 message like 'backgrounding <MOUNT INFORMATION>'. This would help a lot:
 the error message I got came from a backgrounded mount_nfs that called
 itself 'nfs'. But, I think, as this message was standard in older
 BSDlike unixes (say Ultrix 3), it must have been taken out because people
 didn't like it...
 
 So I don't know whether people like such a message.
 
 Another problem comes from the fact, that, when '-v' is specified, mount
 displays the mountpoint information using statfs. So if the mount doesn't
 succeed and is backgrounded, mount issues a statsfs on the parent file
 system and thus displays the wrong information.
 
 But since mount_nfs give back success as an exit code after it
 backgrounded, mount can't tell that the mount didn't succeed!
 
 I really don't know how to fix this... (Well, in my opinion mount_nfs
 should not give back success after backgrounding - that would help..)
 
 
 In conclusion, I would like mount_nfs to give a message like
 'backgrounding...' (this is my opinion since I know FreeBSD...).
 but I am not sure this is appreciated..
 
 What do you think about it?
 > 
 > Ciao,
 > Sheldon.
 > 
 best regards
 	Jan
 
 
 


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?199908101320.GAA37207>