From owner-freebsd-hackers Sun Jan 26 15:31: 5 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 27C0A37B401; Sun, 26 Jan 2003 15:31:04 -0800 (PST) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E830A43ED8; Sun, 26 Jan 2003 15:31:02 -0800 (PST) (envelope-from mb@imp.ch) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.12.6/8.12.3) with ESMTP id h0QNUwvG063960; Mon, 27 Jan 2003 00:30:58 +0100 (CET) (envelope-from Martin.Blapp@imp.ch) Date: Mon, 27 Jan 2003 00:30:56 +0100 (CET) From: Martin Blapp To: Tim Kientzle , "" Cc: freebsd-hackers@freebsd.org Subject: Re: umount of procfs fails Message-ID: <20030127001151.L54133@levais.imp.ch> 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 Hi, I just checked this: -su-2.05b# mount -t procfs proc /proc/ -su-2.05b# mount -t procfs proc /mnt -su-2.05b# mount [...] procfs on /proc (procfs, local) procfs on /mnt (procfs, local) -su-2.05b# umount procfs -su-2.05b# mount [...] procfs on /mnt (procfs, local) Looks like the wrong got unmounted. The mountlist should be traversed in reverse order. I fixed exactly this type of bug for NFS mounts and UFS disks. It works there fine. I'll have a look at the code tomorrow. Bye the way, mounting procfs overlay over the same existing mount works, unmounting the first results in a PANIC (TM). I'll try to fix the userland stuff. Martin Martin Blapp, ------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 61 826 93 00 Fax: +41 61 826 93 01 PGP: PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E ------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message