• R
    ubifs: Rework ubifs_assert() · 2e52eb74
    Richard Weinberger 提交于
    With having access to struct ubifs_info in ubifs_assert() we can
    give more information when an assert is failing.
    By using ubifs_err() we can tell which UBIFS instance failed.
    
    Also multiple actions can be taken now.
    We support:
     - report: This is what UBIFS did so far, just report the failure and go
       on.
     - read-only: Switch to read-only mode.
     - panic: shoot the kernel in the head.
    Signed-off-by: NRichard Weinberger <richard@nod.at>
    2e52eb74
debug.c 84.1 KB