summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-07-16 07:25:57 -0700
committerSan Mehat <san@google.com>2009-07-16 07:29:35 -0700
commitb6e70d877886bf363c5789456dcc00bb3f271c95 (patch)
treeb55ff5f36f866ac92292ff13b4b892d40f29454c
parent160d4b0509e4566930ef9af4f2b9d63b33aebee5 (diff)
downloadsystem_core-b6e70d877886bf363c5789456dcc00bb3f271c95.tar.gz
system_core-b6e70d877886bf363c5789456dcc00bb3f271c95.tar.bz2
system_core-b6e70d877886bf363c5789456dcc00bb3f271c95.zip
vold: Allow a damaged volume to be re-evaluated for mounting
Signed-off-by: San Mehat <san@google.com>
-rw-r--r--vold/volmgr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vold/volmgr.c b/vold/volmgr.c
index 17c9a4932..b7c5ddc9e 100644
--- a/vold/volmgr.c
+++ b/vold/volmgr.c
@@ -523,8 +523,7 @@ static int _volmgr_consider_disk_and_vol(volume_t *vol, blkdev_t *dev)
if (vol->state == volstate_unknown ||
vol->state == volstate_mounted ||
- vol->state == volstate_mounted_ro ||
- vol->state == volstate_damaged) {
+ vol->state == volstate_mounted_ro) {
LOGE("Cannot consider volume '%s' because it is in state '%d",
vol->mount_point, vol->state);
return -EADDRINUSE;