[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wear Leveling in JFFS2 NOT working!(?)
> > The 'jiffies mod' trick would give repeatable results.
> RTC should not be relied on as some hardware has this broken (iPAQ at
> present ;-) What about totaling the checksums for each block as we
> scan them at mount time and then mod that by numblocks? This would
> also be repeatable given the same original filesystem.
By 'repeatable' I meant it would give a badly-distributed pattern, which is
a bad thing. It's not at all necessary that it's predictable given the
filesystem state before mount.
Totalling the checksums as you suggest would work, but I'm a little
reluctant to do that because of the layering implications. It would be
nicer if we could use information which is already available to the code at
that point. How about just rotating the lists by (highest_inode +
Over the lifetime of the filesystem, the range of
(highest_inode + highest_ver) % nr_blocks
is going to be fairly evenly distributed, isn't it?
To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to firstname.lastname@example.org