From: Anthony Martin <ality@pbrane.org>
To: 9front@9front.org
Subject: [9front] Re: Design principles for Plan 9 file systems?
Date: Wed, 26 Jun 2024 14:42:24 -0700 [thread overview]
Message-ID: <ZnyLQDe497EK3uMT@alice> (raw)
In-Reply-To: <3fc9a9b9-931d-41eb-a6ae-edf45f876a63@app.fastmail.com>
Joël Franusic <joel@franusic.com> once said:
> Ultimately, I'd like to come up with a set of guidelines or principles
> to follow when writing a file server such that a Plan 9 veteran could
> mount the provided file system and quickly understand how it works.
The 9P protocol gives you a uniform API for interacting with a
resource: open, read, write, close. How you represent a specific
resource depends on what the resource is or does. There are
some clear patterns that most file systems use to model their
resources:
- single control file
- multiple control files
- control file and data file
- filter
- multiplexer
- protocol converter
It's not a coincidence that all of them have roots in signal
processing and telecom work. Bell Labs was part of the
phone company after all.
Study Sandy Fraser's work if you seek enlightenment.
As for what goes into the control files, it's usually simple
messages akin to writing registers on a device or setting
up a call on a switch. Deviation from this is unusual.
Cheers,
Anthony
next prev parent reply other threads:[~2024-06-26 21:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 7:50 [9front] " Joël Franusic
2024-06-26 21:42 ` Anthony Martin [this message]
2024-06-26 22:14 ` Ori Bernstein
2024-06-26 22:19 ` Joël Franusic
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=ZnyLQDe497EK3uMT@alice \
--to=ality@pbrane.org \
--cc=9front@9front.org \
/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).