Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 1996 17:00:02 -0700 (PDT)
From:      Mark Hannon <mark@seeware.DIALix.oz.au>
To:        freebsd-bugs
Subject:   Re: kern/1839: Multiple mfs mounts of same mount point 
Message-ID:  <199610200000.RAA21535@freefall.freebsd.org>

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

From: Mark Hannon <mark@seeware.DIALix.oz.au>
To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
Cc: mark@seeware.DIALix.oz.au, FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/1839: Multiple mfs mounts of same mount point 
Date: Sun, 20 Oct 1996 09:16:38 +1000

 > As mark@seeware.DIALix.oz.au wrote:
 > 
 > > FreeBSD-2.1.5, mount behaves very strangely, after making a mistake
 > > in my fstab and running mount -av several times I get the following:
 > > 
 > > putte:~# df
 > > Filesystem        1K-blocks     Used    Avail Capacity  Mounted on
 > > /dev/wd0a             29727    13729    13620    50%    /
 > > mfs:18                 7199        7     6617     0%    /tmp
 > > /dev/wd0s1g          347647   216884   102952    68%    /home
 > > /dev/wd0s1e           98479    69336    21265    77%    /usr
 > > /dev/wd0s1f          297423   163296   110334    60%    /usr/local
 > > /dev/wd0s1h           48463     1314    43272     3%    /var
 > > procfs                    4        4        0   100%    /proc
 > > doorway:/var/mail     78975    23927    48730    33%    /var/mail
 > > /dev/matcd0a         650002   650002        0   100%    /cdrom
 > > mfs:2912               7199        1     6623     0%    /tmp
 > > doorway:/var/mail     78975    23927    48730    33%    /var/mail
 > > mfs:2923               7199        1     6623     0%    /tmp
 > > doorway:/var/mail     78975    23927    48730    33%    /var/mail
 > > doorway:/var/mail     78975    23927    48730    33%    /var/mail
 > > mfs:2974               7199        1     6623     0%    /tmp
 > > mfs:2986               7199        1     6623     0%    /tmp
 > > doorway:/var/mail     78975    23927    48730    33%    /var/mail
 > 
 > That's natural.  Basically, you've got what you've been asking for...
 > You can mount a new instance of something over the old mountpoint.  (I
 > think you can't mount a disk partition more than once, since it's
 > simply busy afterwards, but for NFS and MFS, they will be mounted
 > again and again.)
 > 
 > You should be able to umount them in reverse order.
 > 
 Must admit that I didn't try this. 
 
 > If the above is your entire problem, i'd consider it a pilot error,
 > and not a bug.  Well, maybe the semantics of `mount -a' should be
 > changed from `try to mount everything you find in /etc/fstab' to `try
 > to mount everything in /etc/fstab unless it's already mounted'.
 > 
 > Opinions?
 > 
 At least to my way of thinking the command semantics should be to mount
 everything that isn't already mounted - I use the command if I ever update
 fstab with several changes - it that case what I really want is an update
 of the mount state - perhaps a different flag??
 
 In any case not a big issue - perhaps all that needs to be done is to add some
 text to the mountd man page.
 
 Rgds/mark
 -- 
 +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
 | Mark Hannon,| FreeBSD, Free Unix for your PC | mark@seeware.DIALix.oz.au|
 | Melbourne,  | PGP key available by fingering | epamha@epa.ericsson.se   |
 | Australia   | seeware@melbourne.DIALix.oz.au |                          |
 +-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610200000.RAA21535>