Merge change 7544 into donut
* changes: sdutil: Up the mount/unmount wait times to account for disk check + reaper time
This commit is contained in:
@@ -88,7 +88,7 @@ static int mount(const char* path) {
|
|||||||
String16 string(path);
|
String16 string(path);
|
||||||
gMountService->mountMedia(string);
|
gMountService->mountMedia(string);
|
||||||
|
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 60; i++) {
|
||||||
if (isMounted(path)) {
|
if (isMounted(path)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -103,7 +103,7 @@ static int unmount(const char* path) {
|
|||||||
String16 string(path);
|
String16 string(path);
|
||||||
gMountService->unmountMedia(string);
|
gMountService->unmountMedia(string);
|
||||||
|
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 20; i++) {
|
||||||
if (!isMounted(path)) {
|
if (!isMounted(path)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user