From owner-freebsd-hackers Sun Jan 26 13:55:59 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA36137B401 for ; Sun, 26 Jan 2003 13:55:57 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF1FE43EB2 for ; Sun, 26 Jan 2003 13:55:56 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id h0QLZBP4002704; Sun, 26 Jan 2003 16:35:11 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Sun, 26 Jan 2003 16:35:11 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Tim Kientzle Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: umount of procfs fails In-Reply-To: <3E344532.50007@acm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 26 Jan 2003, Tim Kientzle wrote: > Experimenting with 'mount' and stumbled across the following oddity: > > mount -t procfs proc /mnt > umount -t /mnt You're missing the "proc" after -t here, right? > results in procfs still mounted on /mnt but no longer mounted on /proc. > It appears that a umount of procfs is unmounting the most recently > mounted instance rather than the instance mounted at the specified > location. > > I haven't checked to see if other filesystem types have this problem. I experimented a bit, and found the following: If I unmount /mnt using simply "umount /mnt" on -CURRENT or -STABLE, /mnt is unmounted. If I specify "-t procfs", the same thing happens. If I mis-specify the mount type as "-t proc", then it silently fails, and neither is unmounted. Which isn't to say that it didn't happen for you, but you should probably provide a bit more information. First, could you identify the version of FreeBSD you're running? Second, can you include script output of the shell session in which you mount /proc, /mnt, run mount to confirm they are both mounted, then umount one, run mount to show the wrong one unmounted? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message