Merge "Being already unmounted is not a failure" into gingerbread

This commit is contained in:
Kenny Root
2010-09-30 18:03:25 -07:00
committed by Android (Google) Code Review

View File

@@ -2062,6 +2062,9 @@ class MountService extends IMountService.Stub
int code = e.getCode();
if (code == VoldResponseCode.OpFailedStorageBusy) {
rc = StorageResultCode.OperationFailedStorageBusy;
} else if (code == VoldResponseCode.OpFailedStorageNotFound) {
// If it's not mounted then we've already won.
rc = StorageResultCode.OperationSucceeded;
} else {
rc = StorageResultCode.OperationFailedInternalError;
}