udf: Standardize return values in mount sequence
authorJan Kara <jack@suse.cz>
Thu, 25 Jul 2013 17:10:59 +0000 (19:10 +0200)
committerJan Kara <jack@suse.cz>
Wed, 31 Jul 2013 20:14:50 +0000 (22:14 +0200)
Change all function used in filesystem discovery during mount to user
standard kernel return values - -errno on error, 0 on success instead
of 1 on failure and 0 on success. This allows us to pass error number
(not just failure / success) so we can abort device scanning earlier
in case of errors like EIO or ENOMEM . Also we will be able to return
EROFS in case writeable mount is requested but writing isn't supported.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c

diff --cc fs/udf/super.c
Simple merge