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: Sun, 27 Nov 2005 22:03:17 -0500	[thread overview]
Message-ID: <ee9e417a0511271903ne8b9f3dh31687dfc021d0c74@mail.gmail.com> (raw)
In-Reply-To: <20051128020811.6CC4EDA182@dexter-peak.quanstro.net>

> i've been running linux 2.6.14 and mounting upasfs via
> this mtab entry:
>
> /tmp/ns.quanstro.:0/upasfs      /home/quanstro/9/upasfs 9P      uid=N,user,name=quanstro,proto=unix,noauto      0 0
>
> which works great (after a few tweaks) except faces -i chokes and dies because
> fsreaddir() ends up sending upasfs the path "/home/quanstro/upasfs/mbox/..."
> instead of "mbox/...". i'm guessing that the named sockets in $NAMESPACE
> need this extra information.

some more information would be helpful.
fsreaddir reads a directory.  it doesn't send paths.
what is the ... that you're eliding?

i am guessing that you are looking at loadmboxfaces.
the results of dirread are used in that loop, but
dirread is most definitely not the problem.

when you click on a face, faces sends a plumbing
message containing the message directory.
that message should contain the entire directory,
or else the program the plumber invokes will not
know how to handle it.

plumber in turn will run
    window -r 4 120 750 600 upas/nedmail -s $0
and given that there is no window script (yet),
that's going to fail.

you can see the plumbing messages by running
    9p read plumb/showmail
or maybe
    cat /home/quanstro/9/plumb/showmail
in another window.  check that the path is the full one.

then: does
    upas/nedmail -s /home/quanstro/9/upasfs/mbox/1/
work?  it should.  if not, figure out what nedmail is
doing wrong.

russ


  reply	other threads:[~2005-11-28  3:03 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 [this message]
2005-11-28 11:42   ` erik quanstrom
2005-11-28 12:02     ` Russ Cox

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=ee9e417a0511271903ne8b9f3dh31687dfc021d0c74@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).