9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] tree problem
@ 2007-05-03 14:22 Gorka Guardiola
  2007-05-03 15:01 ` Russ Cox
  0 siblings, 1 reply; 10+ messages in thread
From: Gorka Guardiola @ 2007-05-03 14:22 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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


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

end of thread, other threads:[~2007-05-04  7:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-03 14:22 [9fans] tree problem 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
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

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