From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9b0916ab8db61cc99e267e7e550558a0@plan9.ucalgary.ca> To: 9fans@cse.psu.edu From: andrey mirtchovski MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] mounting channels in a Plan 9 server? Date: Sat, 27 Mar 2004 10:38:24 -0700 Topicbox-Message-UUID: 450e3c36-eacd-11e9-9e20-41e7f4b1d025 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