From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sat, 6 Dec 2008 19:39:29 -0200 From: "Iruata Souza" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: [9fans] Explanation of binding from ftpfs Topicbox-Message-UUID: 5c092c0a-ead4-11e9-9d60-3106f5b1d025 On Sat, Dec 6, 2008 at 6:44 PM, Brad Frank wrote: > When I use ftpfs to mount a ftp site and then bind /n/ftp to another > location. All appears to work fine in /n/ftp and in the other > location. When I type ns, I can clearly see the pipe bind for ftpfs > mounted to /n/ftp. When I unmount /n/ftp I can type ls on /n/ftp and > not see anything there. But if I ls on the other location that I bound > to /n/ftp, it still can access the ftp server. How is the other > location able to do this, when I don't see any indication of a pipe > bind still listed in ns? I do see the ftpfs process running, though. > > the bind shows here, like it should cpu% ns | tail -3 mount -b '#s/rio.iru.323' /dev mount -c '#|/data1' /n/ftp cd /usr/iru cpu% bind /n/ftp new cpu% ns | tail -3 mount -c '#|/data1' /n/ftp mount '#|/data1' /usr/iru/new cd /usr/iru cpu% lc /n/ftp | tail -1 pub cpu% unmount /n/ftp cpu% ns | tail -3 mount -b '#s/rio.iru.323' /dev mount '#|/data1' /usr/iru/new cd /usr/iru cpu% lc /n/ftp cpu% lc new | tail -1 pub cpu% unmount new cpu% ns | tail -3 mount '#s/rio.iru.323' /mnt/wsys 1 mount -b '#s/rio.iru.323' /dev cd /usr/iru i may be mistaken here but it seems that unmount calls cclose which calls decref and only if the mount is the last reference to the server, it will be freed. the behaviour seems ok here, then. iru