On Wed, Jan 02, 2002 at 08:34:38PM +0100, Christoph Hellwig wrote:
> On Wed, Jan 02, 2002 at 05:57:35AM +1100, Andrew Clausen wrote:
> > When partprobe/libparted are compiled with --enable-discover-only
> > --disable-nls etc (see README), it comes to about 73k (35k
> > compressed), not including libc or libuuid. Unfortunately, this is
> > still quite large to be including in things like initramfs. Is
> > it worth paying this price?
>
> Nope - I'd much prefer aeb's small partx for the same job :)
> In fact it can be cut down even more than the current version. which is
> 30k dynamically linked against glibc. In fact a striped down version
> wouldn't need a libc so this would be about the size.
If you compile with -Os, and run strip(1), it's 10112 bytes :)
(4868 gzipped). About 4k of that is common code.
There is probably enough stuff on an initramfs to warrant a dynamic
diet libc?
> It supports dos, solaris, unixware and bsd partitions so far.
It looks like a small amount of work to add support for others too.
I'm convinced now it's better to maintain both partx and libparted
implementations of partition code: one for discovery, one for
editing.
OTOH, the "small" version of libparted is still useful for the Hurd,
so I'll probably keep this small option for libparted.
Thanks for pointing it out :)
Andrew
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:18 EST