Subject: Re: vnd: improving support for compressed images
To: Dieter Baron <dillo@NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 06/29/2007 16:06:22
On Fri, Jun 29, 2007 at 03:39:39PM +0200, Dieter Baron wrote:
> 2) Let the vnconfig parse the image file and pass a hunk descriptor
> list to the kernel, like the following:
> first block in hunk
> number of blocks in hunk
> offset in file for hunk data
> compression method (none, zero-fill, zlib, bzip2, ...)
How many hunks would a typical image have?
Your method #3 sounds pretty attractive, as it will allow new compression
methods to be added easily. I'm not sure it would be significantly slower.
Martin