DOC filesystem questions
Chuck Meade
chuckmeade at mindspring.com
Thu Aug 7 12:56:56 EDT 2003
David Woodhouse wrote:
> We _must_ retain the bad block table which was on the device when it
> arrived from the factory.
OK I see. Would it be valuable then to have a Linux command-line
utility which captures the BBT before calling nftl_format, then
is used to restore the BBT after calling nftl_format but before
nftl tries to mount any partitions (via 'insmod nftl' or whatever)?
Since nftl_format can be called with an offset, I believe the utility
would not necessarily put the BBT back at the exact device offset
from which it was read. For instance, when reading the initial BBT
we might find the media headers in the first 2 blocks on the device,
and read/save the BBT from there. However, if nftl_format is called
with an offset, we would need to write the saved BBT back to the
device at the blocks with media headers written beyond that offset
by nftl_format.
Does such a utility for the Linux command line sound like it would
preserve the BBT correctly?
Thanks,
Chuck
More information about the linux-mtd
mailing list