am 5d268fda: Merge "Make sure volume is vfat before fsck\'ing." into mnc-dev

* commit '5d268fdac49bd3174a7f0c6dbb042162ae87a695':
  Make sure volume is vfat before fsck'ing.
gugelfrei
Makoto Onuki 9 years ago committed by Android Git Automerger
commit 34507d60ad

@ -94,6 +94,11 @@ status_t PublicVolume::doMount() {
// 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;

Loading…
Cancel
Save