[PATCH v3] UBIFS: fix master node recovery
Artem Bityutskiy
dedekind1 at gmail.com
Thu Jul 7 23:55:13 EDT 2011
On Thu, 2011-07-07 at 12:25 +0200, Anatolij Gustschin wrote:
> When the 1st LEB was unmapped and written but 2nd LEB not,
> the master node recovery doesn't succeed after power cut.
> We see following error when mounting UBIFS partition on NOR
> flash:
>
> UBIFS error (pid 1137): ubifs_recover_master_node: failed to recover master node
>
> Correct 2nd master node offset check is needed to fix the
> problem. If the 2nd master node is at the end in the 2nd LEB,
> first master node is used for recovery. When checking for this
> condition we should check whether the master node is exactly at
> the end of the LEB (without remaining empty space) or whether
> it is followed by an empty space less than the master node size.
>
> Signed-off-by: Anatolij Gustschin <agust at denx.de>
Pushed, thanks for fixing this!
--
Best Regards,
Artem Bityutskiy
More information about the linux-mtd
mailing list