9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: andrey mirtchovski <mirtchov@cpsc.ucalgary.ca>
To: 9fans@cse.psu.edu
Subject: [9fans] mounting channels in a Plan 9 server?
Date: Sat, 27 Mar 2004 10:38:24 -0700	[thread overview]
Message-ID: <9b0916ab8db61cc99e267e7e550558a0@plan9.ucalgary.ca> (raw)

what's the best way to import a file hierarchy into a 9p server?  for
example, when i'm serving a set of files (A) and want to add to that
set another hierarchy served by a different program (B) on a file
descriptor i have.

trivially it could be done using general plan9 tools by mounting A
somewhere, mounting B in one of the directories served by A and
srvfs-ing the whole thing, but what if I don't want to post a file
descriptor in /srv?  looking at the devsrv code in /sys/src/9/port
doesn't have a solution, since all the 9p messages there return
channels, which doesn't happen in userland...  i also looked at the
QTMOUNT mode bit but there are exactly three examples or it being
used, none of which tell whether it's the thing i need.

so my question is: is there a possibility to say 'here is a file
descriptor/chan you shall use for your next request' when a client
walks a file hierarchy i'm serving?  i.e.  is there a way to mount a
file descriptor in an in-memory server?

andrey



             reply	other threads:[~2004-03-27 17:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-27 17:38 andrey mirtchovski [this message]
2004-03-29 20:23 ` rog

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=9b0916ab8db61cc99e267e7e550558a0@plan9.ucalgary.ca \
    --to=mirtchov@cpsc.ucalgary.ca \
    --cc=9fans@cse.psu.edu \
    /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).