diff options
author | Jan Kara <jack@suse.cz> | 2013-07-25 19:10:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-01 09:17:48 -0700 |
commit | 66ccf96185266dee7b0b15ae08e9c1359e0e1c47 (patch) | |
tree | 64ff205b827ff46cbaf38dbe413f9aea914605ca /lib/memory-notifier-error-inject.c | |
parent | 7b7b9915f77d3c5db399866080751e9dafc9136f (diff) |
udf: Standardize return values in mount sequence
commit d759bfa4e7919b89357de50a2e23817079889195 upstream.
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>
Cc: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions