am 8b28441a: Merge "Being already unmounted is not a failure" into gingerbread

Merge commit '8b28441adab59f2bb0d92c8a717af75331249e08' into gingerbread-plus-aosp

* commit '8b28441adab59f2bb0d92c8a717af75331249e08':
  Being already unmounted is not a failure
This commit is contained in:
Kenny Root
2010-09-30 18:06:02 -07:00
committed by Android Git Automerger

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;
}