diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index 0f04a06..0eb72a1 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -1045,7 +1045,7 @@
     VolumeManager *vm = VolumeManager::Instance();
     vm->disableVolumeManager();
     vm->unshareVolume(label, "ums");
-    return vm->unmountVolume(label, true);
+    return vm->unmountVolume(label, true, false);
 }
 
 extern "C" int vold_getNumDirectVolumes(void) {
@@ -1087,7 +1087,7 @@
     return 0;
 }
 
-int VolumeManager::unmountVolume(const char *label, bool force) {
+int VolumeManager::unmountVolume(const char *label, bool force, bool revert) {
     Volume *v = lookupVolume(label);
 
     if (!v) {
@@ -1109,7 +1109,7 @@
 
     cleanupAsec(v, force);
 
-    return v->unmountVol(force);
+    return v->unmountVol(force, revert);
 }
 
 /*
