If we fail to format a blank partition, try recovery

Bug: 28303663

Change-Id: Iab802997dcd2a4416417228c92362518c7f1a82f
This commit is contained in:
Matthew Bouyack 2016-05-02 15:55:30 -07:00
parent 3174bda7ac
commit 9c59cbcf37

View file

@ -602,6 +602,10 @@ int fs_mgr_mount_all(struct fstab *fstab)
/* Let's replay the mount actions. */
i = top_idx - 1;
continue;
} else {
ERROR("%s(): Format failed. Suggest recovery...\n", __func__);
encryptable = FS_MGR_MNTALL_DEV_NEEDS_RECOVERY;
continue;
}
}
if (mret && mount_errno != EBUSY && mount_errno != EACCES &&