From: "Russ Cox" <rsc@swtch.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] tree problem
Date: Thu, 3 May 2007 11:55:37 -0400 [thread overview]
Message-ID: <20070503155539.077301E8C1F@holo.morphisms.net> (raw)
In-Reply-To: <200705031528.l43FSQ006268@zamenhof.cs.utwente.nl>
> at a time I had modified my local lib9p to be able
> to register a clunk function.
>
> I needed it for a 'filterfs' that sits between a user
> and another file server.
> it forwarded each incoming request (potentially modified)
> to the other file server, and handed back its responses
> (potentially modified) to the user.
> the forwarded requests contained the fids as given by the user.
an alternate solution would have been to use your own
fid space, though that's not as convenient.
destroyfid != clunk because i was worried about buggy
or malicious clients that might clunk a fid while there
were still pending requests using that fid. for example
issue a Tread and then Tclunk the fid before
the Rread comes back. then the Tclunk handler can't
free associated data structures because the Tread
handler might still be using them.
i suppose i could have still had a clunk handler
and just delayed processing Tclunk until any pending
ops on that fid finished.
russ
next prev parent reply other threads:[~2007-05-03 15:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-03 14:22 Gorka Guardiola
2007-05-03 15:01 ` Russ Cox
2007-05-03 15:28 ` Axel Belinfante
2007-05-03 15:40 ` ron minnich
2007-05-03 15:55 ` Russ Cox [this message]
2007-05-03 16:25 ` Gorka Guardiola
2007-05-03 17:22 ` Russ Cox
2007-05-04 7:53 ` Gorka Guardiola
2007-05-03 17:30 ` rog
2007-05-03 20:21 ` Charles Forsyth
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=20070503155539.077301E8C1F@holo.morphisms.net \
--to=rsc@swtch.com \
--cc=9fans@cse.psu.edu \
/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).