Subject: bin/8431: mount should have option to not return failure error code if already mounted
To: None <gnats-bugs@gnats.netbsd.org>
From: None <johnr@imageworks.com>
List: netbsd-bugs
Date: 09/17/1999 11:36:43
>Number:         8431
>Category:       bin
>Synopsis:       mount should have option to not return failure error code if already mounted
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 17 11:35:01 1999
>Last-Modified:
>Originator:     John Refling
>Organization:
>Release:        1.4.1
>Environment:
sparc classic

>Description:
In two cases in the install script, mount can fail when the drive
is already mounted.  There should be an option in mount so that it
can return a non-failure error code even if the requested operation did
not complete, but the end result was correct.

Ie, mount /dev/wd0a /mnt

fails if /dev/wd0a is already mounted on /mnt, but it is clear that
additional operations in the script after the mount operation can
proceed properly.

The two cases where this fails in the install script are:

1)  If the install script is run a second or more time, things are
    still mounted from previous attempts.

2)  If the distribution sets are specified as being located on a
    local drive and that drive can't be mounted since it already
    is mounted.  [I had unofficially asked for a "install from local
    mounted drive" option in install a while ago (I think it's in
    some ports, but not in others)]


>How-To-Repeat:


>Fix:


>Audit-Trail:
>Unformatted: