From 3dd39309d084f1c038ce4e8c1442aad2a7b94f0f Mon Sep 17 00:00:00 2001 From: Mateusz Nowak Date: Mon, 3 Aug 2015 15:48:52 +0200 Subject: [PATCH] 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 Signed-off-by: Zhiquan Liu --- fs/Vfat.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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;