Merge "Handle non-format partition in Vold" am: 385ca5d236 am: 63b7774894
am: 971ecb40ee
* commit '971ecb40ee9bc3c729091667b5192dbae996c1d2':
Handle non-format partition in Vold
diff --git a/fs/Vfat.cpp b/fs/Vfat.cpp
index 7338c1e..df51eab 100644
--- a/fs/Vfat.cpp
+++ b/fs/Vfat.cpp
@@ -108,6 +108,11 @@
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;