9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Gorka Guardiola" <paurea@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: [9fans] tree problem
Date: Thu,  3 May 2007 16:22:31 +0200	[thread overview]
Message-ID: <599f06db0705030722y534dc22cn5c570f147c8a6e71@mail.gmail.com> (raw)

I was using a tree created by alloctree(), 9pfile(2) to write a
synthetic filesystem and got
into a problem I have seen before, but I can´t remember if I asked
about it here (google
doesn't find anything).

There is no way to register a close() function in Srv which can be
called when a clunk
is received for an open file.

The solution may, alternatively be to register a clunk()
function and each can do what they want with it though I
do not like it because I feel I should receive things related
with files and not with fids.

This is important to do garbage collection in some
cases (for example if you open something when you get an open and want to
close it). Is there a reason for this function not existing? am I
missing something?.

At some point in the past I had a modified version of the library (my
proposed solution)
and at another I played with the references (very ugly) if my memory
serves right.
-- 
- curiosity sKilled the cat


             reply	other threads:[~2007-05-03 14:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-03 14:22 Gorka Guardiola [this message]
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
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=599f06db0705030722y534dc22cn5c570f147c8a6e71@mail.gmail.com \
    --to=paurea@gmail.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).