[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: intrep.c update to handle gaps in the middle of the log.
Simon Munton wrote:
> > If we have :
> > > 0x000000 - 0x2b0000: valid nodes
> > > 0x2b0000 - 0x2b7000: all 0xff The error occured here
> > > 0x2b7000 - 0x2c0000: all zero We set this
> > space as dirty
> > > 0x2c0000 - 0x2c8cff: valid nodes
> > > 0x2c8d00 - 0x75ffff: all 0xff
> > > 0x760000 - 0x76049f: all zero
> > > 0x7604a0 - 0x7dffff: valid nodes
> In this case, how does JFFS decide where the end of the log is? Is it at the
> start of the first free space, or the second? My gut reaction would be to
> set all but the largest of the free spaces to be dirty.
That seems correct to me, if you also set dirty the free space at the
beginning of the corrupted sector.