From: Artem Bityutskiy Date: Sat, 14 Jul 2012 11:19:46 +0000 (+0300) Subject: UBIFS: add debugfs knob to switch to R/O mode X-Git-Tag: v3.6-rc1~150^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06bef9451a4c5ad882cd15fd7a0df9890c0249f3;p=pandora-kernel.git 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 --- Reading git-diff-tree failed