Merge "Wait for completion of device mapping in mountObb"
This commit is contained in:
commit
d5aa67cc53
1 changed files with 5 additions and 0 deletions
5
VolumeManager.cpp
Normal file → Executable file
5
VolumeManager.cpp
Normal file → Executable file
|
@ -1438,6 +1438,11 @@ int VolumeManager::mountObb(const char *img, const char *key, int ownerGid) {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Wait for the device mapper node to be created.
|
||||
*/
|
||||
waitForDevMapper(dmDevice);
|
||||
|
||||
if (Fat::doMount(dmDevice, mountPoint, true, false, true, 0, ownerGid,
|
||||
0227, false)) {
|
||||
SLOGE("Image mount failed (%s)", strerror(errno));
|
||||
|
|
Loading…
Reference in a new issue