9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] plumbing on served fs
@ 2004-11-02 13:34 cej
  2004-11-02 14:02 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: cej @ 2004-11-02 13:34 UTC (permalink / raw)
  To: 9fans



hi all!

I have a problem:
when I mount ISO9660 CD under /n/cd,
start acme from the same namespace
3-click on /n/cd/test.ps,
the file appears as src text in acme frame,
instead being plumbed to page.
cp /n/cd/test.ps .
and 3-click on test.ps behaves OK.
The same holds for other non-textual filetypes (jpg...),
also on ext2fs served files.

Is this correct behavior? If so, why?

Thanks, regards,

++pac.

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.786 / Virová báze: 532 - datum vydání: 29. 10. 2004
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] plumbing on served fs
  2004-11-02 13:34 [9fans] plumbing on served fs cej
@ 2004-11-02 14:02 ` Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2004-11-02 14:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> Is this correct behavior? If so, why?

it happens because when you mount the
cd that happens in just the window you're
using and not anywhere else.  in particular,
it doesn't get mounted in the plumber's
name space, and so asking the plumber about
/n/cd/test.ps fails, so acme falls back to its
own defaults -- in this case just opening 
the file.

others have posted some tricks with srvfs
to work around this.  instead of those, i just tell
the plumber to do the mount too.  i type 
Local 9fs cd in an acme window and then
middle-click it (execute in acme) and right
click it (send to plumber).  with this plumb
rule:

# stupid rule to run programs
kind is text
data matches 'Local (.*)'
plumb to none
plumb start rc -c $1

russ


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-02 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-02 13:34 [9fans] plumbing on served fs cej
2004-11-02 14:02 ` Russ Cox

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).