FTL and Endianity
David Woodhouse
dwmw2 at infradead.org
Fri Jul 6 07:35:25 EDT 2001
andreev at niisi.msk.ru said:
> But when the ftl_fromat utility creates an ftl partition, it doesn't
> swap any field of the header. So, it doesn't matter on which endianity
> the FTL driver and ftl_format works, it must be the same only. Am i
> wrong?
You're right - except that it does matter in theory. The FTL spec is
defined as little-endian. So while it would _work_ if you do it all
backwards, it's technically wrong.
I'd be happier to fix ftl_format and ftl_check to do the byteswapping than
to remove same from ftl.c.
--
dwmw2
More information about the linux-mtd
mailing list