Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Mar 2000 17:12:47 +0200 (CEST)
From:      Andrzej Bialecki <abial@webgiro.com>
To:        Doug Rabson <dfr@nlsystems.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Dynamic sysctls - patches for review
Message-ID:  <Pine.BSF.4.20.0003261710550.42603-100000@mx.webgiro.com>
In-Reply-To: <Pine.BSF.4.21.0003261437300.89245-100000@salmon.nlsystems.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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

//  <abial@webgiro.com> 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0003261710550.42603-100000>