On Sun, 26 Mar 2000, Doug Rabson wrote:
> On Sun, 26 Mar 2000, Andrzej Bialecki wrote:
> > Well, somehow the idea of overlapping subtrees sounds nice and useful
> > IMHO. Any suggestions how to solve these issues?
> >
> > One possible way to do it would be to keep some ID of the oid's
> > creator. Then, for nodes they would be deleted when the refcnt goes to 0
> > (no matter who created them), but for terminals the deletion would succeed
> > only for the owners. Also, if you create a subtree not from the root of
> > dynamic tree, the refcnt++ would propagate up the tree as well, and
> > similarly refcnt-- would propagate on deletion.
>
> This is a reasonable solution. Another would be for dynamic sysctl users
> to use a 'context' object to record all their edits to the tree which
> would allow the edits to be backed out without relying on a tree-delete
> operation.
Could you explain it further? Do you mean something like a transaction
log? But this wouldn't work - the operations on the tree can be
interdependent between users.
Andrzej Bialecki
// <[EMAIL PROTECTED]> WebGiro AB, Sweden (http://www.webgiro.com)
// -------------------------------------------------------------------
// ------ FreeBSD: The Power to Serve. http://www.freebsd.org --------
// --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ----
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message