Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 1996 08:00:03 -0700 (PDT)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-bugs
Subject:   Re: kern/1839: Multiple mfs mounts of same mount point
Message-ID:  <199610191500.IAA07610@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: J Wunsch <j@uriah.heep.sax.de>
To: mark@seeware.DIALix.oz.au
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/1839: Multiple mfs mounts of same mount point
Date: Sat, 19 Oct 1996 16:27:11 +0200 (MET DST)

 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.
 
 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?
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)



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