diff options
author | JP Abgrall <jpa@google.com> | 2014-07-02 14:26:54 -0700 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2014-07-02 14:28:50 -0700 |
commit | cee206880ef80ac570df6b369d12f111c00f653a (patch) | |
tree | 562e7100d04e0325a9b1bbbe93dbf909402035c5 /fs_mgr/include | |
parent | f22b7452940c99b830749cabdd929f9f7cfdaacc (diff) | |
download | system_core-cee206880ef80ac570df6b369d12f111c00f653a.zip system_core-cee206880ef80ac570df6b369d12f111c00f653a.tar.gz system_core-cee206880ef80ac570df6b369d12f111c00f653a.tar.bz2 |
[HACK]fs_mgr+init: Format via recovery if encryptable /data is wiped
If the encryptable partition is wiped (4KB worth of 0 or 0xff),
then reboot into recovery to format /data+/cache
This is while waiting for the Mac OS support to format f2fs.
The flashstation running on Mac OS will currently just erase userdata
and not format it with f2fs.
Bug: 15720406
Bug: 15747366
Change-Id: Ib7cca3e1701483a09573457a835750f34da71ee0
Diffstat (limited to 'fs_mgr/include')
-rw-r--r-- | fs_mgr/include/fs_mgr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs_mgr/include/fs_mgr.h b/fs_mgr/include/fs_mgr.h index ab3f828..d9c58d4 100644 --- a/fs_mgr/include/fs_mgr.h +++ b/fs_mgr/include/fs_mgr.h @@ -54,6 +54,7 @@ struct fstab_rec { struct fstab *fs_mgr_read_fstab(const char *fstab_path); void fs_mgr_free_fstab(struct fstab *fstab); +#define FS_MGR_MNTALL_DEV_NEEDS_RECOVERY 3 #define FS_MGR_MNTALL_DEV_NEEDS_ENCRYPTION 2 #define FS_MGR_MNTALL_DEV_MIGHT_BE_ENCRYPTED 1 #define FS_MGR_MNTALL_DEV_NOT_ENCRYPTED 0 |