9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: G. David Butler gdb@dbSystems.com
Subject: [9fans] Adding transaction semantics to Plan9
Date: Thu,  4 Sep 1997 10:40:29 -0400	[thread overview]
Message-ID: <19970904144029.4gA-fPHfEqBhJVNfBLQg2ohQhBlsYn3MozbQmoR35bo@z> (raw)

[This didn't come in via the mailing list,
I had to pluck it off news]

From: forsyth@caldo.DEmon.co.UK <forsyth@caldo.DEmon.co.UK>
>i'd have put transaction control files in the name space
>of the transaction server.  those files
>would be written to announce and describe transactions,
>and set transaction modes, and perhaps read to discover state.
>i'd do this for much the reason
>that plan 9 has got /net/tcp and /net/ether
>rather than specialised system calls for sockets.

I thought about this first (it is Plan9!).  Adding to each
server an /adm/trans file that could be written with "start",
"abort", "commit", etc.  There are many problems with this.
First, the process may not know all of the servers that are
bound in.  Next, 9P does not preserve process boundaries only
user.  (Look at the 9P calls from a fork some day.)  Even if you
addressed those issues, how does the server know one read/write
from another?  The mnt driver multiplexes things very well.

>it would be useful, however, to see what your new
>system calls are, to get a more concrete feel for why
>you felt you needed them.

The calls are like begintrans(type), committrans(), aborttrans();
pretty conventional.  The kernel would then have to add the transaction
to most messages and allow for some "file systems" to ignore them.
This is where you add 9P messages and the associated entry points
to each 9P server. (Read that as each device driver needs to
be changed to support or ignore transactions.)

The bottom line is that each 9P message (with some added like
attacht, clonet, precommitt, committ, clunkt) would go from
Tblah [tag] [fid] ... to Tblah [tag] [tid] [fid]

David Butler
gdb@dbSystems.com




             reply	other threads:[~1997-09-04 14:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-04 14:40 G.David [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-09-04 21:32 G.David
1997-09-02 20:12 G.David

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=19970904144029.4gA-fPHfEqBhJVNfBLQg2ohQhBlsYn3MozbQmoR35bo@z \
    --to=9fans@9fans.net \
    /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).