Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6e70d87 authored by San Mehat's avatar San Mehat
Browse files

vold: Allow a damaged volume to be re-evaluated for mounting



Signed-off-by: default avatarSan Mehat <san@google.com>
parent 160d4b05
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;