From 507d31b86b38dffe7c60ca5c54b5e631f5a7cab3 Mon Sep 17 00:00:00 2001 From: Joseph Lehrer Date: Mon, 11 Apr 2011 15:02:50 -0700 Subject: vold: retry mounting partition Works around a race condition between the vold and MountService uevent handlers Change-Id: I71c92f2e9b92e1fefc192da166a91d81bc60e242 Signed-off-by: Mike Lockwood --- DirectVolume.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'DirectVolume.cpp') diff --git a/DirectVolume.cpp b/DirectVolume.cpp index 7e8ac68..fa3eb9a 100644 --- a/DirectVolume.cpp +++ b/DirectVolume.cpp @@ -220,6 +220,10 @@ void DirectVolume::handlePartitionAdded(const char *devpath, NetlinkEvent *evt) #endif if (getState() != Volume::State_Formatting) { setState(Volume::State_Idle); + if (mRetryMount == true) { + mRetryMount = false; + mountVol(); + } } } else { #ifdef PARTITION_DEBUG -- cgit v1.2.3