• Artem Bityutskiy's avatar
    UBIFS: use max_write_size during recovery · 2765df7d
    Artem Bityutskiy authored
    When recovering from unclean reboots UBIFS scans the journal and checks nodes.
    If a corrupted node is found, UBIFS tries to check if this is the last node
    in the LEB or not. This is is done by checking if there only 0xFF bytes
    starting from the next min. I/O unit. However, since now we write in
    c->max_write_size, we should actually check for 0xFFs starting from the
    next max. write unit.
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    2765df7d
recovery.c 39.5 KB