Subject: bin/22166: mount does not strip // in Linux emulation
To: None <gnats-bugs@gnats.netbsd.org>
From: None <martti.kuparinen@iki.fi>
List: netbsd-bugs
Date: 07/17/2003 20:16:45
>Number: 22166
>Category: bin
>Synopsis: mount does not strip // in Linux emulation
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 17 17:17:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Martti Kuparinen
>Release: NetBSD 1.6U
>Organization:
>Environment:
System: NetBSD localhost 1.6U NetBSD 1.6U (P3440CT) #0: Wed Jul 9 15:50:55 UTC 2003 martti@localhost:/usr/src/sys/arch/i386/compile/P3440CT i386
Architecture: i386
Machine: i386
>Description:
I mounted one NFS filesystem like this (by mistake) while within a
Linux chroot.
server:/export 65656180 5253180 57120188 8% //export
This can't be umounted in NetBSD (and I assume that okay as you shouldn't
have more than one /).
>How-To-Repeat:
# /emul/linux/usr/bin/chroot / /usr/pkg/emul/linux/bin/sh
# mount server:/export //export
# exit
# df -t nfs
# umount /export
umount: /export: not currently mounted
# umount //export
umount: /export: not currently mounted
# umount -a -t nfs
umount: /export: not currently mounted
>Fix:
Currently the only way to umount that filesystem is to go back to
the Linux chroot and run umount:
# /emul/linux/usr/bin/chroot / /usr/pkg/emul/linux/bin/sh
# umount /export
# exit
>Release-Note:
>Audit-Trail:
>Unformatted: