[system/vold] fix remove volume do umount alway return true

This commit is contained in:
Firefly
2015-09-01 11:32:20 +08:00
committed by djw
parent 229a7e0364
commit 16ee7c08e3
2 changed files with 10 additions and 2 deletions

View File

@ -1148,9 +1148,9 @@ int Volume::doUnmount(const char *path, bool force) {
Process::killProcessesWithOpenFiles(path, action);
usleep(1000*30);
}
errno = EBUSY;
//errno = EBUSY;
SLOGE("Giving up on unmount %s (%s)", path, strerror(errno));
return -1;
return 0;
}
int Volume::unmountVol(bool force, bool revert) {