summaryrefslogtreecommitdiffstats
path: root/DirectVolume.cpp
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2010-02-18 09:00:18 -0800
committerSan Mehat <san@google.com>2010-02-18 11:48:49 -0800
commit4ba8948dc16463053e21cda5744f519a555080d0 (patch)
treeb033c6371d77569f490bf0b4a2a7e64dbac58882 /DirectVolume.cpp
parentd31e380bd9689dd9629b510ffe324707e261b439 (diff)
downloadsystem_vold-4ba8948dc16463053e21cda5744f519a555080d0.tar.gz
system_vold-4ba8948dc16463053e21cda5744f519a555080d0.tar.bz2
system_vold-4ba8948dc16463053e21cda5744f519a555080d0.zip
vold: Add 'force' option to anything that can cause an unmount
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'DirectVolume.cpp')
-rw-r--r--DirectVolume.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/DirectVolume.cpp b/DirectVolume.cpp
index 68a6fcd..dcb1a05 100644
--- a/DirectVolume.cpp
+++ b/DirectVolume.cpp
@@ -274,7 +274,7 @@ void DirectVolume::handlePartitionRemoved(const char *devpath, NetlinkEvent *evt
getLabel(), getMountpoint(), major, minor);
mVm->getBroadcaster()->sendBroadcast(ResponseCode::VolumeBadRemoval,
msg, false);
- if (Volume::unmountVol()) {
+ if (Volume::unmountVol(true)) {
LOGE("Failed to unmount volume on bad removal (%s)",
strerror(errno));
// XXX: At this point we're screwed for now