From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Mon, 28 Nov 2005 07:02:04 -0500 From: Russ Cox To: erik quanstrom , Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] fsdirread v dirread() In-Reply-To: <20051128114206.DCAA31E35@dexter-peak.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051128020811.6CC4EDA182@dexter-peak.quanstro.net> <20051128114206.DCAA31E35@dexter-peak.quanstro.net> Cc: Topicbox-Message-UUID: b304cc7a-ead0-11e9-9d60-3106f5b1d025 > the problem is that the 9p paths that faces sends upasfs when given > -i -m /home/quanstro/9/upasfs/mbox as the mailbox start with > "/home/quanstro/9/upasfs". upasfs returns an error that the file doesn't > exist and at that point in the code, faces exits. faces does not send anything to upas/fs. when you start with -i, faces reads the upas/fs directory and puts some faces on the screen. when you click on a face, faces sends a plumbing message to the plumber. the plumber starts nedmail. in neither case does a path get sent from faces to upas/fs. i finally see what you're talking about -- paths aren't being sent to upas/fs. they're being opened. the ported faces code assumes that it is talking to a 9p service upasfs and not a mounted directory, so it assumes that the path you've given it with -m is fair game to use in the open request to upasfs. so faces -i -m mbox is the right thing to use. originally you said that faces -i was trying to open paths like upasfs:/home/quanstro/9/upasfs/..., but i don't see how that would happen. faces -i uses upasfs:/mail/fs/mbox by default, which is still wrong, but not what you wrote. it should be using plain old upasfs:mbox. apologies for the clumsy syntax: by a:b i mean path b on 9p server a. faces doesn't use the regular file system calls, so it doesn't matter at all that you've got the upasfs mounted somewhere by the operating system. faces will just access the 9p service directly like it would anywhere else. russ