[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

@ -464,6 +464,14 @@ int DirectVolume::handleBlockEvent(NetlinkEvent *evt) {
else
{
char *pDevPah =(char *)getDevPath();
if(pDevPah)
{
SLOGE("#########NetlinkEvent::NlActionAdd Partition pDevPah=%s dp",pDevPah,dp);
}
else
{
return -1;
}
if (!strncmp(dp, pDevPah, strlen(pDevPah)))
{
handleUdiskPartitionAdded(dp,evt);

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) {