Don't abort the encryption process if an internal volume is present but unmounted.
It is not a failure if the SD card is not mounted.
Change-Id: If954f77c55ac124b9b7b39c89ffbafb4e5ea9e98
diff --git a/Volume.cpp b/Volume.cpp
index 40a3669..685cb35 100644
--- a/Volume.cpp
+++ b/Volume.cpp
@@ -589,7 +589,7 @@
if (getState() != Volume::State_Mounted) {
SLOGE("Volume %s unmount request when not mounted", getLabel());
errno = EINVAL;
- return -1;
+ return UNMOUNT_NOT_MOUNTED_ERR;
}
setState(Volume::State_Unmounting);