Subject: Re: UNION mounting
To: None <current-users@netbsd.org>
From: Chris Pinnock <C.J.E.Pinnock@qmw.ac.uk>
List: current-users
Date: 10/23/2000 18:14:13
On Mon, Oct 23, 2000 at 05:35:46PM +0100, Chris Pinnock wrote:
> I've just shutdown the machine (had to move it). On shutdown the
> machine panicked because it couldn't unmount the union filesystem.
> 
> I've got a core dump if anyone fancies debugging it.

It looks like my original post was slightly misleading -- sorry. 
Something wrong happens when using mount_union.

Ok so:
steinitz# mount -t union /sources/src-1.5 /usr/src
steinitz# mount -t union
<above>:/sources/src-1.5 on /usr/src type union (local)
steinitz# umount /usr/src

works fine. So does:

steinitz# mount -t union /sources/src-1.5 /usr/src/
steinitz# mount -t union
<above>:/sources/src-1.5 on /usr/src type union (local)
steinitz# umount /usr/src

But mount_union does the wrong thing with the end /

steinitz# mount_union /sources/src-1.5 /usr/src/
steinitz# mount -t union
<above>:/sources/src-1.5 on /usr/src/ type union (local)
steinitz# umount /usr/src
umount: /usr/src: not currently mounted
steinitz# umount /usr/src/
umount: /usr/src: not currently mounted

However the following works (as Bernd suggested).

steinitz# umount -R /usr/src

It does worry me though that the system panicked when shutting down 
(when the mount_union was still in place).
Should this be pr'ed? I guess the first thing to do is upgrade to
BETA and see what happens there.

best wishes,
-- 
Chris