UBIFS: do not print scary error messages needlessly
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 25 Aug 2009 12:00:55 +0000 (15:00 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 10 Sep 2009 09:06:47 +0000 (12:06 +0300)
commit348709bad348d2fd013e1529b4cf5f220717c328
treee5ba0fb86c1c41d078c38f6ca67bda957241ef53
parente3c3efc243462d67ba9fa7f67620dcbc4597bf0a
UBIFS: do not print scary error messages needlessly

At the moment UBIFS print large and scary error messages and
flash dumps in case of nearly any corruption, even if it is
a recoverable corruption. For example, if the master node is
corrupted, ubifs_scan() prints error dumps, then UBIFS recovers
just fine and goes on.

This patch makes UBIFS print scary error messages only in
real cases, which are not recoverable. It adds 'quiet' argument
to the 'ubifs_scan()' function, so the caller may ask 'ubi_scan()'
not to print error messages if the caller is able to do recovery.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Reviewed-by: Adrian Hunter <Adrian.Hunter@nokia.com>
fs/ubifs/debug.c
fs/ubifs/gc.c
fs/ubifs/log.c
fs/ubifs/lprops.c
fs/ubifs/master.c
fs/ubifs/orphan.c
fs/ubifs/recovery.c
fs/ubifs/replay.c
fs/ubifs/scan.c
fs/ubifs/tnc_commit.c
fs/ubifs/ubifs.h