[system/vold] fix remove volume do umount alway return true
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user