From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <38c1a33c1aaf02e7c0c477e50e0bea47@plan9.bell-labs.com> From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] bind, ns weirdness In-Reply-To: <20030306215848.25459.qmail@mail.dirac.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 6 Mar 2003 17:16:56 -0500 Topicbox-Message-UUID: 7bc81780-eacb-11e9-9e20-41e7f4b1d025 A process has an underlying idea of what / is, i.e., there is a up->slash in the Proc structure of the process. In all cases, this is actually '#/'. Therefore, after your 'unmount /', an 'ls /' should show: % ls -l / d-r-xr-xr-x / 0 presotto presotto 0 Mar 3 11:05 /bin d-r-xr-xr-x / 0 presotto presotto 0 Mar 3 11:05 /boot d-r-xr-xr-x / 0 presotto presotto 0 Mar 3 11:05 /dev d-r-xr-xr-x / 0 presotto presotto 0 Mar 3 11:05 /env d-r-xr-xr-x / 0 presotto presotto 0 Mar 3 11:05 /fd d-r-xr-xr-x / 0 presotto presotto 0 Mar 3 11:05 /mnt d-r-xr-xr-x / 0 presotto presotto 0 Mar 3 11:05 /net d-r-xr-xr-x / 0 presotto presotto 0 Mar 3 11:05 /net.alt d-r-xr-xr-x / 0 presotto presotto 0 Mar 3 11:05 /proc d-r-xr-xr-x / 0 presotto presotto 0 Mar 3 11:05 /root d-r-xr-xr-x / 0 presotto presotto 0 Mar 3 11:05 /srv In other words, you can't get rid of the underlying thing that eveything else is mounted on. All of the binds that happened onto / are indeed gone. Therefore, there will be no /386. However, /386/bin was originally bound onto '#/'/bin which is still in your namespace. Therefore, it is still visible since it's still in your namespace. You're right that ns isn't good about figuring out how to get back stuff that is no longer reachable.