9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Plumber architecture question
@ 2019-01-05  8:47 Ethan Gardener
  2019-01-05 14:12 ` erik quanstrom
  0 siblings, 1 reply; 3+ messages in thread
From: Ethan Gardener @ 2019-01-05  8:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Every so often, I start wondering why the plumber isn't simpler.  Here's my simpler design:  There is no plumber.  Instead, `plumb` reads the plumbing files and acts accordingly.  To receive input from the plumber, programs post a pipe in /srv.  No need for a special-purpose filesystem.

It will break if multiple processes post the same pipe, the second process won't be able to create the pipe.  Isn't that a good thing?  Plumber behaviour is to send messages to all recipients, which has surprised me a few times when I wasn't quite alert.

It would also break my use case of separate plumber instances for separate activities; there is only one #s, but I don't think anyone does this other than me.  It can be done another way, with plumber rules to discriminate by directory, but that takes a bit more setup.  I would work if there could be multiple srv(3) filesystems, which I think would sometimes be useful for other tasks too.  To make this work, all the programs which currently address '#s/filename' would have to be changed to address the full path.  Then creation permission would control which of the srv filesystems gets the pipe.

Just musing on architecture.  Comments welcome.

--
2.1.3. Life with eternal upgrades



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

* Re: [9fans] Plumber architecture question
  2019-01-05  8:47 [9fans] Plumber architecture question Ethan Gardener
@ 2019-01-05 14:12 ` erik quanstrom
  2019-01-05 14:53   ` Ethan Gardener
  0 siblings, 1 reply; 3+ messages in thread
From: erik quanstrom @ 2019-01-05 14:12 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/html, Size: 157 bytes --]

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

* Re: [9fans] Plumber architecture question
  2019-01-05 14:12 ` erik quanstrom
@ 2019-01-05 14:53   ` Ethan Gardener
  0 siblings, 0 replies; 3+ messages in thread
From: Ethan Gardener @ 2019-01-05 14:53 UTC (permalink / raw)
  To: 9fans

On Sat, Jan 5, 2019, at 2:12 PM, erik quanstrom wrote:
> you need plumber so cpu can be transparent to plumbing.

Good point.  I think it could be done with multi-/srv, but I see one problem: you wouldn't want cpu to export all of /srv.  (Right?)  I think it could be dealt with by mounting a separate #s instance (for want of a better name) just for the plumber-replacement pipes.



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

end of thread, other threads:[~2019-01-05 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-05  8:47 [9fans] Plumber architecture question Ethan Gardener
2019-01-05 14:12 ` erik quanstrom
2019-01-05 14:53   ` Ethan Gardener

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