fs_mgr: add support for new recoveryonly flag

If a device has an ext4 partition that contains the radio
firmware, and that filesystem is not mounted in normal
operation, we need a flag to prevent mount_all from
mounting it, so the new flag recoveryonly was added.

Change-Id: I361800c494e751b04c4faf956870f15fd0d8fe20
This commit is contained in:
Ken Sumrall 2013-02-22 17:36:21 -08:00
parent 65e203070c
commit 6c2c121386
2 changed files with 3 additions and 1 deletions

View File

@ -75,6 +75,7 @@ static struct flag_list fs_mgr_flags[] = {
{ "nonremovable",MF_NONREMOVABLE },
{ "voldmanaged=",MF_VOLDMANAGED},
{ "length=", MF_LENGTH },
{ "recoveryonly",MF_RECOVERYONLY },
{ "defaults", 0 },
{ 0, 0 },
};
@ -523,7 +524,7 @@ int fs_mgr_mount_all(struct fstab *fstab)
for (i = 0; i < fstab->num_entries; i++) {
/* Don't mount entries that are managed by vold */
if (fstab->recs[i].fs_mgr_flags & MF_VOLDMANAGED) {
if (fstab->recs[i].fs_mgr_flags & (MF_VOLDMANAGED | MF_RECOVERYONLY)) {
continue;
}

View File

@ -68,6 +68,7 @@
#define MF_NONREMOVABLE 0x8
#define MF_VOLDMANAGED 0x10
#define MF_LENGTH 0x20
#define MF_RECOVERYONLY 0x40
#endif /* __CORE_FS_MGR_PRIV_H */