9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: erik quanstrom <Quanstro@speakeasy.net>,
	Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] fsdirread v dirread()
Date: Mon, 28 Nov 2005 07:02:04 -0500	[thread overview]
Message-ID: <ee9e417a0511280402v571e646bge59966965836502@mail.gmail.com> (raw)
In-Reply-To: <20051128114206.DCAA31E35@dexter-peak.quanstro.net>

> 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


      reply	other threads:[~2005-11-28 12:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-28  2:08 erik quanstrom
2005-11-28  3:03 ` Russ Cox
2005-11-28 11:42   ` erik quanstrom
2005-11-28 12:02     ` Russ Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ee9e417a0511280402v571e646bge59966965836502@mail.gmail.com \
    --to=rsc@swtch.com \
    --cc=9fans@cse.psu.edu \
    --cc=Quanstro@speakeasy.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).