FP5-1867 [SD Card]8GB SD card disappear after format for portable sstorage from internal storage
* Root Cause
remove old device mapper time out
* Solution
add retry times
* Test Steps
NA
* Test Result
pass
Change-Id: Ic181f887c83e05fe00886eeb1436b5fc8f36a36b
diff --git a/model/PrivateVolume.cpp b/model/PrivateVolume.cpp
index 3334cbb..2fc7836 100644
--- a/model/PrivateVolume.cpp
+++ b/model/PrivateVolume.cpp
@@ -125,7 +125,7 @@
// TODO(b/149396179) there appears to be a race somewhere in the system where trying
// to delete the device fails with EBUSY; for now, work around this by retrying.
bool ret;
- int tries = 10;
+ int tries = 40;
while (tries-- > 0) {
ret = dm.DeleteDevice(getId());
if (ret || errno != EBUSY) {