[lkml]   [2002]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: initramfs buffer spec -- second draft
On January 15, 2002 10:04 pm, Andreas Dilger wrote:
> On Jan 15, 2002 21:16 +0100, Daniel Phillips wrote:
> > On January 15, 2002 09:03 pm, H. Peter Anvin wrote:
> > > Daniel Phillips wrote:
> > > > Encoding the numeric fields in ASCII/hex is a goofy wart on an otherwise
> > > > nice design. What is the compelling reason? Bytesex isn't it: we
> > > > should just pick one or the other and stick with it as we do in Ext2.
> > > >
> > > > Why don't we fix cpio to write a consistent bytesex?
> > >
> > > Because we want to use existing tools.
> >
> > It's a mistake not to fix this tool. I'll post the cost in terms of bytes
> > wasted shortly, pretty tough to argue with that, right?
> Well, I doubt the difference will be more than a few bytes, if you compare
> the cpio archive sizes after compression with gzip.

Coming soon...

Side note: I have a hard time understanding the dual thinking that goes
something like: "we have to save every nanosecond of CPU but wasting disk is
ok because, um, disk is cheap, and everybody has more than they need anyway,
and reading it takes zero time and oh yes, everybody has disks, don't they?"

> > > I don't think think this application alone is enough to add Yet Another
> > > Version of CPIO. However, if there are more compelling reasons to do so
> > > for CPIO backup reasons itself I guess we could write it up and add it
> > > to GNU cpio as "linux" format...
> >
> > Oh, it is, really it is. It's not just any application, and GNU already
> > has its own verion of cpio.
> But then every person who wants to build a kernel will have to have
> the patched version of cpio until such a time it is part of the standard
> cpio tool...

If we go with little-endian then only big-endian architectures will need
the patch, and they tend to need patches for lots of things anyway. Or
if you like I'll write a little utility that goes through the file and
byteswaps all the int fields.

> (which may be "never"). I would much rather use the currently
> available tools than save 20 bytes off a 900kB kernel image.

What if it's more than 20 bytes?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:23    [W:0.087 / U:22.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site