summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMateusz Nowak <mateusz.nowak@intel.com>2015-08-03 15:48:52 +0200
committerZhiquan Liu <zhiquan.liu@intel.com>2015-10-21 11:14:47 +0800
commit3dd39309d084f1c038ce4e8c1442aad2a7b94f0f (patch)
tree2a4f1186af397c180cdad82228f8f67eba80ac9a /fs
parent0331d4ae3843f682e98bfa1aba0f8da7fbd9beb0 (diff)
downloadandroid_system_vold-3dd39309d084f1c038ce4e8c1442aad2a7b94f0f.tar.gz
android_system_vold-3dd39309d084f1c038ce4e8c1442aad2a7b94f0f.tar.bz2
android_system_vold-3dd39309d084f1c038ce4e8c1442aad2a7b94f0f.zip
Handle non-format partition in Vold
fsck_msdos will retun error code 8 when the partition is non-format. Handle this error code and continue next partition in Vold. Change-Id: I31499ccb16945ffbc67bdc92dfbc3ea71e82573a Signed-off-by: Mateusz Nowak <mateusz.nowak@intel.com> Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/Vfat.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/Vfat.cpp b/fs/Vfat.cpp
index 7bd05ec..6b5d7cf 100644
--- a/fs/Vfat.cpp
+++ b/fs/Vfat.cpp
@@ -108,6 +108,11 @@ status_t Check(const std::string& source) {
errno = EIO;
return -1;
+ case 8:
+ SLOGE("Filesystem check failed (no filesystem)");
+ errno = ENODATA;
+ return -1;
+
default:
SLOGE("Filesystem check failed (unknown exit code %d)", rc);
errno = EIO;