Date: Wed, 10 Oct 2001 12:26:02 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: The Anarcat <anarcat@anarcat.dyndns.org> Cc: Libh <freebsd-libh@FreeBSD.ORG>, Alexander Langer <alex@big.endian.de>, gjvc@gjvc.com Subject: Re: adding Disk::freespace to lib[h]disk Message-ID: <XFMail.011010122602.jhb@FreeBSD.org> In-Reply-To: <20011010152124.A1233@shall.anarcat.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.011010122602.jhb>