DOC filesystem questions

David Woodhouse dwmw2 at infradead.org
Fri Aug 8 03:30:34 EDT 2003


On Thu, 2003-08-07 at 17:56, Chuck Meade wrote:
> 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)?

... or which writes it back as _part_ of the nftl_format process,
perhaps?

Yes, it would be extremely useful to do this.



> 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

-- 
dwmw2




More information about the linux-mtd mailing list