diff options
author | Richard Weinberger <richard@nod.at> | 2014-11-10 16:11:40 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-03-26 22:46:03 +0100 |
commit | 5ca97ad83800938e8aeea622821a26d69d2052bf (patch) | |
tree | 91c62e747bd2dfd33dbed9bba7faa89c1b38b91d /lib/locking-selftest.c | |
parent | 61de74ce2fa2cc9eee85cf5edc6525b12831b507 (diff) | |
download | blackbird-op-linux-5ca97ad83800938e8aeea622821a26d69d2052bf.tar.gz blackbird-op-linux-5ca97ad83800938e8aeea622821a26d69d2052bf.zip |
UBI: Fastmap: Rework fastmap error paths
If UBI is unable to write the fastmap to the device
we have make sure that upon next attach UBI will fall
back to scanning mode.
In case we cannot ensure that they only thing we can do
is falling back to read-only mode.
The current error handling code is not powercut proof.
It could happen that a powercut while invalidating would
lead to a state where an too old fastmap could be used upon
attach.
This patch addresses the issue by writing a fake fastmap
super block to a fresh PEB instead of reerasing the existing one.
The fake fastmap super block will UBI case to do a full scan.
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'lib/locking-selftest.c')
0 files changed, 0 insertions, 0 deletions