From: David Woodhouse <dwmw2@infradead.org>
To: mtd@infradead.org
Cc: dhinds@pcmcia.sourceforge.org
Subject: FTL endianness
Date: Mon, 27 Mar 2000 11:01:37 +0100 [thread overview]
Message-ID: <6457.954151297@devel2.axiom.internal> (raw)
I'm porting the latest FTL code to the MTD system. I see code like this:
if ((header.NumEraseUnits > 65536) || (header.BlockSize != 9) ||
(header.EraseUnitSize < 10) || (header.EraseUnitSize > 31) ||
(header.NumTransferUnits >= header.NumEraseUnits)) {
printk(KERN_NOTICE "ftl_cs: FTL header corrupt!\n");
return -1;
}
This is odd - unless I'm missing something, it means that FTL on bigendian
machines has to be bigendian, and FTL on littleendian machines has to be
littleendian. And that you can't swap flash cards between the two.
The NFTL spec certainly says that the format on the media should be
little-endian, so I byteswap it all. Isn't this the case for FTL?
If so - how many people are actually using FTL on BE machines? If there aren't
{m,}any, we can just fix it and forget about it. Otherwise we could make it
conditional and/or provide two modules - ftl_be and ftl_le.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
reply other threads:[~2000-03-27 10:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6457.954151297@devel2.axiom.internal \
--to=dwmw2@infradead.org \
--cc=dhinds@pcmcia.sourceforge.org \
--cc=mtd@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox