diff options
author | Richard Weinberger <richard@nod.at> | 2018-07-12 14:02:00 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-08-15 01:25:22 +0300 |
commit | 99a24e02ccf6604e3020cf9e2c7a042b6ebb655f (patch) | |
tree | 7e54ebb184e769900cb3fa6f44368cbdf20b2412 /drivers | |
parent | c38c5a7f2e5056555c22e7603c2151b118f3a494 (diff) | |
download | linux-99a24e02ccf6604e3020cf9e2c7a042b6ebb655f.tar.xz |
ubifs: Set default assert action to read-only
Traditionally UBIFS just reported a failed assertion and moved on. The
drawback is that users will notice UBIFS bugs when it is too late, most
of the time when it is no longer about to mount. This makes bug hunting
problematic since valuable information from failing asserts is long gone
when UBIFS is dead. The other extreme, panic'ing on a failing assert is
also not worthwhile, we want users and developers give a chance to
collect as much debugging information as possible if UBIFS hits an
assert. Therefore go for the third option, switch to read-only mode when
an assert fails. That way UBIFS will not write possible bad data to the
MTD and gives users the chance to collect debugging information.
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions