UBIFS: add debugfs knob to switch to R/O mode
authorArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Sat, 14 Jul 2012 11:19:46 +0000 (14:19 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 20 Jul 2012 07:27:25 +0000 (10:27 +0300)
commit06bef9451a4c5ad882cd15fd7a0df9890c0249f3
treeabd269a573e5ffce8b7e92c39cc3000ca1ecb944
parent782759b9f5f5223e0962af60c3457c912fab755f
UBIFS: add debugfs knob to switch to R/O mode

This patch adds another debugfs knob which switches UBIFS to R/O mode.
I needed it while trying to reproduce the 'first log node is not CS node'
bug. Without this debugfs knob you have to perform a power cut to repruduce
the bug. The knob is named 'ro_error' and all it does is it sets the
'ro_error' UBIFS flag which makes UBIFS disallow any further writes - even
write-back will fail with -EROFS. Useful for debugging.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
fs/ubifs/debug.c
fs/ubifs/debug.h
This page took 0.024597 seconds and 5 git commands to generate.