Subject: kern/3205: mount_union with a '/' suffix to directory causes problems
To: None <gnats-bugs@gnats.netbsd.org>
From: None <david@mono.org>
List: netbsd-bugs
Date: 02/10/1997 13:37:33
>Number: 3205
>Category: kern
>Synopsis: mount_union with a '/' suffix to directory causes problems
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 10 05:35:02 1997
>Last-Modified:
>Originator: David Brownlee
>Organization:
Monochrome <a href="http://www.mono.org/">Monochrome</a>
>Release: 1.2
>Environment:
System: NetBSD alpha.mhm-internet.com 1.2 NetBSD 1.2 (_ALPHA_) #1: Thu Sep 19 16:09:55 BST 1996 root@:/usr/src/sys/arch/i386/compile/_ALPHA_ i386
>Description:
Specifying amount point with a trailing / will stop you from being able
to unmount it later.
>How-To-Repeat:
# mkdir /tmp/a /tmp/b
# mount_union /tmp/a /tmp/b (Mount ok)
# umount /tmp/b (Umount ok)
# mount_union /tmp/a /tmp/b/ (Mount ok)
# umount /tmp/b
umount: /tmp/b: not currently mounted
# umount /tmp/b/
umount: /tmp/b: not currently mounted
# umount -vat union
umount: /tmp/b: not currently mounted
>Fix:
Either change mount_union and friends to strip trailing '/' from
directories, or change the lookups to permit the umount to work.
>Audit-Trail:
>Unformatted: