Re: initramfs buffer spec -- second draft

H. Peter Anvin (hpa@zytor.com)
Tue, 15 Jan 2002 19:33:24 -0800


Andreas Dilger wrote:

>>
> Well, a few quick tests show (GNU cpio version 2.4.2), with raw sizes
> in "blocks" as output by cpio, compressed sizes in bytes:
>
> find <dir> | cpio -o -H <format> | gzip -9 | wc -c
>
> dir bin (default) newc (proposed)
> raw gzip raw gzip
> /sbin 15121 3289678 12952 2769451
> /etc 8822 689517 8996 693700
> /usr/local/sbin 1895 385461 1899 385764
>
> The binary format reports lots of "truncating inode number", but for
> the purpose of initramfs, that is not an issue as we don't anticipate
> more than 64k files. I don't know why the /sbin test is so heavily
> in favour of the newc (ASCII) format, but I repeated it to confirm
> the numbers.
>

Probably because it does hard links.

-hpa

-
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/