UBIFS: ensure UBIFS switches to read-only on error writing the log
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Fri, 18 Jul 2008 14:56:37 +0000 (17:56 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:48 +0000 (17:08 +0300)
UBI transparently handles write errors by automatically copying
and remapping the affected eraseblock. If UBI is unable to do
that, for example its pool of eraseblocks reserved for bad block
handling is empty, then the error is propagated to UBIFS. UBIFS
must protect the media from falling into an inconsistent state
by immediately switching to read-only mode. In the case of log
updates, this was not being done.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>

No differences found