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/VolumeManager.cpp b/VolumeManager.cpp
index 071e027..c21eab3 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -1192,7 +1192,7 @@
SLOGW("Attempt to unmount volume which isn't mounted (%d)\n",
v->getState());
errno = EBUSY;
- return -1;
+ return UNMOUNT_NOT_MOUNTED_ERR;
}
cleanupAsec(v, force);