From: Artem Bityutskiy Date: Thu, 29 Jan 2009 14:22:54 +0000 (+0200) Subject: UBIFS: return sensible error codes X-Git-Tag: Release-2010-05/1~3^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3760c37406275e01f30fdd99122f48392fcaf45;p=pandora-kernel.git UBIFS: return sensible error codes When mounting/re-mounting, UBIFS returns EINVAL even if the ENOSPC or EROFS codes are are much better, just because we have not found references to ENOSPC/EROFS in mount (2) man pages. This patch changes this behaviour and makes UBIFS return real error code, because: 1. It is just less confusing and more logical 2. mount is not described in SuSv3, so it seems to be not really well-standartized 3. we do not cover all cases, and any random undocumented in man pages error code may be returned anyway Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed