From: Artem Bityutskiy Date: Thu, 26 May 2011 13:57:14 +0000 (+0300) Subject: UBIFS: return EROFS in case of broken commit X-Git-Tag: v3.1-rc1~327^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=549c999a768a7a144c60a0faa58f34c48f39112b;p=pandora-kernel.git UBIFS: return EROFS in case of broken commit If commit failed and it is in broken state, UBIFS switches to R/O mode. Most operations return -EROFS in this case, except of commit which returns -EINVAL. Make it return -EROFS too for consistency. This is also important for our power cut emulation testing. Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed