Date: Mon, 22 Oct 2001 08:50:01 -0700 (PDT) From: Martin Blapp <mb@imp.ch> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/31432: umount(8) and unmount(2) don't corespond by semantic Message-ID: <200110221550.f9MFo1k15874@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/31432; it has been noted by GNATS. From: Martin Blapp <mb@imp.ch> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110221550.f9MFo1k15874>