Re: initramfs buffer spec -- second draft

H. Peter Anvin (hpa@zytor.com)
Sun, 13 Jan 2002 12:11:57 -0800


Eric W. Biederman wrote:

>
> Comments. Endian issues are not specified, is the data little, big
> or vax endian?
>

Not applicable. There are no endian-specific binary structure in the
format AT ALL. ASCII-coded fields are always bigendian.

> What is the point of alignment? If the data starts as 4 byte aligned,
> the 6 byte magic string guarantees the data will be only 2 byte
> aligned. This isn't good for 32 or 64 bit architectures.

They're ASCII-coded, so it supposedly doesn't matter (yet, it's a bit
daft, but blame the SysV people.) The alignment makes sure the *data*
field is 4-byte aligned.

> I do like having a c_magic that at least allows us to change things
> in the future if necessary.

It's pretty clear from a lot of the comments that a number of people
haven't understood that the cpio encapsulation *THIS IS A CODIFICATION
OF AN EXISTING FORMAT.*

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