From owner-freebsd-bugs Mon Oct 22 8:50: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 77CA237B403 for ; Mon, 22 Oct 2001 08:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9MFo1k15874; Mon, 22 Oct 2001 08:50:01 -0700 (PDT) (envelope-from gnats) Date: Mon, 22 Oct 2001 08:50:01 -0700 (PDT) Message-Id: <200110221550.f9MFo1k15874@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Martin Blapp Subject: Re: bin/31432: umount(8) and unmount(2) don't corespond by semantic Reply-To: Martin Blapp Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/31432; it has been noted by GNATS. From: Martin Blapp To: freebsd-gnats-submit@FreeBSD.org, vova@express.ru Cc: Subject: Re: bin/31432: umount(8) and unmount(2) don't corespond by semantic Date: Mon, 22 Oct 2001 17:41:37 +0200 This is not a bug. You can unmount a mounted filesytem by: 1. the mounted directory 2. the mounted name. It is clear that if you rename a mountpoint, that you can't unmount it by the name itself. The checks umount(8) does, are rather complex. umount(8) does a check, if the mounted name matches the original mountpoint. We need this to handle overlay mounts properly. Your suggestion does break overlay mounts unmounting order ! If it is not possible to unmount like in your example, you have to unmount the mounted name: umount linprocfs That's it. Martin -- Martin Blapp, mb@imp.ch ------------------------------------------------------------------ Improware AG, UNIX solution and service provider Zurlindenstrasse 29, 4133 Pratteln, Switzerland Phone: +41 061 826 93 00: +41 61 826 93 01 PGP Fingerprint: 57E 7CCD 2769 E7AC C5FA DF2C 19C6 DCD1 1B3A EC9C ------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message