]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: Rework ubifs_assert()
authorRichard Weinberger <richard@nod.at>
Thu, 12 Jul 2018 11:01:58 +0000 (13:01 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 14 Aug 2018 22:25:21 +0000 (00:25 +0200)
commit2dd615a305bd57e3bccba0f1a48395f86d4caa1e
tree28c0633e10d74d5e12ac3179108c1fed8c52e4f3
parentcfb68acef5703250fe6bc8301dd84f4a54127737
ubifs: Rework ubifs_assert()

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: Richard Weinberger <richard@nod.at>
fs/ubifs/debug.c
fs/ubifs/debug.h
fs/ubifs/ubifs.h