From owner-freebsd-libh Wed Oct 10 12:26:42 2001 Delivered-To: freebsd-libh@freebsd.org Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by hub.freebsd.org (Postfix) with ESMTP id 41C7337B409 for ; Wed, 10 Oct 2001 12:26:37 -0700 (PDT) Received: (qmail 21746 invoked from network); 10 Oct 2001 19:26:36 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 10 Oct 2001 19:26:36 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20011010152124.A1233@shall.anarcat.dyndns.org> Date: Wed, 10 Oct 2001 12:26:02 -0700 (PDT) From: John Baldwin To: The Anarcat Subject: Re: adding Disk::freespace to lib[h]disk Cc: Libh , Alexander Langer , gjvc@gjvc.com Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 10-Oct-01 The Anarcat wrote: > On Wed Oct 10, 2001 at 08:01:22PM +0200, Poul-Henning Kamp wrote: >> >> Just for the record: I'm not actively interested in libdisk... > > Noted. phk removed from cc: :) > > Ok, then I guess libdisk is left to itself now? > > I think libdisk should be rewritten, maybe keeping a compatibility layer > with the current libdisk. > > This is because I think there are some fundamental designs flaws in > libdisk. For example, it mixes "undo management" with low-level disk > writing routines. libdisk should be low-level, that is, not an "image" > of the current that gets written only when write() is called, but a set > of clearly defined operations that operate directly on the disk. > > An additional "upper level" layer might be implemented to provide the > kind of facilities libdisk provides (undo(), write()). > > The problem with current implementation is that the disk contains > implementation-specific data (ie, subtype codes) that are undocumented > and sometimes conflict with library specific data (ie type codes: > [0-6]). > > So what do you people think? Am I making any sense? Check out George Cox's libwhisk, it is a libdisk replacement that has already been written. I've cc'd him and he can point you to his library. > A. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message