Merge "Wait for completion of device mapping in mountObb"

This commit is contained in:
Elliott Hughes 2015-04-25 16:42:37 +00:00 committed by Gerrit Code Review
commit d5aa67cc53

5
VolumeManager.cpp Normal file → Executable file
View 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));