From 9c59cbcf379a82b6964e174812c8e4e0cc7e69f6 Mon Sep 17 00:00:00 2001 From: Matthew Bouyack Date: Mon, 2 May 2016 15:55:30 -0700 Subject: [PATCH] If we fail to format a blank partition, try recovery Bug: 28303663 Change-Id: Iab802997dcd2a4416417228c92362518c7f1a82f --- fs_mgr/fs_mgr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs_mgr/fs_mgr.c b/fs_mgr/fs_mgr.c index 70acd3841..6de88175c 100644 --- a/fs_mgr/fs_mgr.c +++ b/fs_mgr/fs_mgr.c @@ -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 &&