diff options
author | Ken Sumrall <ksumrall@android.com> | 2013-09-11 19:42:51 -0700 |
---|---|---|
committer | Ken Sumrall <ksumrall@android.com> | 2013-09-20 17:43:52 -0700 |
commit | 887f2892062c64fa688fc9525ebd09cc98ca70d8 (patch) | |
tree | c028683f69e5304aa704a03d7034bcbbbaddd2ab /fs_mgr/fs_mgr.c | |
parent | 7b445a8e3a21055a5735585ca0890d14977032f0 (diff) | |
download | system_core-887f2892062c64fa688fc9525ebd09cc98ca70d8.zip system_core-887f2892062c64fa688fc9525ebd09cc98ca70d8.tar.gz system_core-887f2892062c64fa688fc9525ebd09cc98ca70d8.tar.bz2 |
New fstab flags to support more expressive SD card permissions
Bug: 10330128
Change-Id: I41fb178b839487b604762fbc1ccba097d25c7aa0
Diffstat (limited to 'fs_mgr/fs_mgr.c')
-rw-r--r-- | fs_mgr/fs_mgr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs_mgr/fs_mgr.c b/fs_mgr/fs_mgr.c index 82c5798..ea60cc8 100644 --- a/fs_mgr/fs_mgr.c +++ b/fs_mgr/fs_mgr.c @@ -92,6 +92,7 @@ static struct flag_list fs_mgr_flags[] = { { "swapprio=", MF_SWAPPRIO }, { "zramsize=", MF_ZRAMSIZE }, { "verify", MF_VERIFY }, + { "noemulatedsd", MF_NOEMULATEDSD }, { "defaults", 0 }, { 0, 0 }, }; @@ -931,3 +932,8 @@ int fs_mgr_is_encryptable(struct fstab_rec *fstab) { return fstab->fs_mgr_flags & MF_CRYPT; } + +int fs_mgr_is_noemulatedsd(struct fstab_rec *fstab) +{ + return fstab->fs_mgr_flags & MF_NOEMULATEDSD; +} |