am 34507d60: am 5d268fda: Merge "Make sure volume is vfat before fsck\'ing." into mnc-dev
* commit '34507d60ad50f8953226a4699c67dd9f4e38a5b9':
Make sure volume is vfat before fsck'ing.
diff --git a/PublicVolume.cpp b/PublicVolume.cpp
index 9d6887d..d17853b 100644
--- a/PublicVolume.cpp
+++ b/PublicVolume.cpp
@@ -94,6 +94,11 @@
// TODO: expand to support mounting other filesystems
readMetadata();
+ if (mFsType != "vfat") {
+ LOG(ERROR) << getId() << " unsupported filesystem " << mFsType;
+ return -EIO;
+ }
+
if (vfat::Check(mDevPath)) {
LOG(ERROR) << getId() << " failed filesystem check";
return -EIO;