[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mirroring in JFFS2



On Tue, 12 November 2002 16:05:18 +0530, Miraj Mohamed wrote:
> 
>         Our system needs error detection and recovery of data on Flash.
> We selected Jffs2 which has in built CRC. And planning to modify
> Jffs2 code for mirroring. This means...each write and erase will be
> duplicated
> on mirror partition . While reading if a CRC error is detected,
> the mirror data will be read.
> 
>                     Can any one say if this implementation is ok (or is
> possible)?
> Have anyone implemented a similar system before? Any other way to attain
> redundancy?

Are you trying to put the mirroring stuff into jffs2?

In the hard disk world, people use md for this, which uses two devices
and returns one. The filesystem does not need to worry about anything.

Writing an mtd driver in that fashion should be pretty easy. Robert
Kaiser has done something similar already, have a look at the concat
layer.

Jörn

-- 
Data expands to fill the space available for storage.
-- Parkinson's Law

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com