Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
777a00e3
Commit
777a00e3
authored
Sep 23, 2013
by
Ken Sumrall
Committed by
Android (Google) Code Review
Sep 23, 2013
Browse files
Options
Downloads
Plain Diff
Merge "New fstab flags to support more expressive SD card permissions" into klp-dev
parents
0ee7d8c6
887f2892
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
fs_mgr/fs_mgr.c
+6
-0
6 additions, 0 deletions
fs_mgr/fs_mgr.c
fs_mgr/fs_mgr_priv.h
+6
-0
6 additions, 0 deletions
fs_mgr/fs_mgr_priv.h
fs_mgr/include/fs_mgr.h
+1
-0
1 addition, 0 deletions
fs_mgr/include/fs_mgr.h
with
13 additions
and
0 deletions
fs_mgr/fs_mgr.c
+
6
−
0
View file @
777a00e3
...
@@ -92,6 +92,7 @@ static struct flag_list fs_mgr_flags[] = {
...
@@ -92,6 +92,7 @@ static struct flag_list fs_mgr_flags[] = {
{
"swapprio="
,
MF_SWAPPRIO
},
{
"swapprio="
,
MF_SWAPPRIO
},
{
"zramsize="
,
MF_ZRAMSIZE
},
{
"zramsize="
,
MF_ZRAMSIZE
},
{
"verify"
,
MF_VERIFY
},
{
"verify"
,
MF_VERIFY
},
{
"noemulatedsd"
,
MF_NOEMULATEDSD
},
{
"defaults"
,
0
},
{
"defaults"
,
0
},
{
0
,
0
},
{
0
,
0
},
};
};
...
@@ -931,3 +932,8 @@ int fs_mgr_is_encryptable(struct fstab_rec *fstab)
...
@@ -931,3 +932,8 @@ int fs_mgr_is_encryptable(struct fstab_rec *fstab)
{
{
return
fstab
->
fs_mgr_flags
&
MF_CRYPT
;
return
fstab
->
fs_mgr_flags
&
MF_CRYPT
;
}
}
int
fs_mgr_is_noemulatedsd
(
struct
fstab_rec
*
fstab
)
{
return
fstab
->
fs_mgr_flags
&
MF_NOEMULATEDSD
;
}
This diff is collapsed.
Click to expand it.
fs_mgr/fs_mgr_priv.h
+
6
−
0
View file @
777a00e3
...
@@ -72,6 +72,12 @@
...
@@ -72,6 +72,12 @@
#define MF_SWAPPRIO 0x80
#define MF_SWAPPRIO 0x80
#define MF_ZRAMSIZE 0x100
#define MF_ZRAMSIZE 0x100
#define MF_VERIFY 0x200
#define MF_VERIFY 0x200
/*
* There is no emulated sdcard daemon running on /data/media on this device,
* so treat the physical SD card as the only external storage device,
* a la the Nexus One.
*/
#define MF_NOEMULATEDSD 0x400
#define DM_BUF_SIZE 4096
#define DM_BUF_SIZE 4096
...
...
This diff is collapsed.
Click to expand it.
fs_mgr/include/fs_mgr.h
+
1
−
0
View file @
777a00e3
...
@@ -62,6 +62,7 @@ struct fstab_rec *fs_mgr_get_entry_for_mount_point(struct fstab *fstab, const ch
...
@@ -62,6 +62,7 @@ struct fstab_rec *fs_mgr_get_entry_for_mount_point(struct fstab *fstab, const ch
int
fs_mgr_is_voldmanaged
(
struct
fstab_rec
*
fstab
);
int
fs_mgr_is_voldmanaged
(
struct
fstab_rec
*
fstab
);
int
fs_mgr_is_nonremovable
(
struct
fstab_rec
*
fstab
);
int
fs_mgr_is_nonremovable
(
struct
fstab_rec
*
fstab
);
int
fs_mgr_is_encryptable
(
struct
fstab_rec
*
fstab
);
int
fs_mgr_is_encryptable
(
struct
fstab_rec
*
fstab
);
int
fs_mgr_is_noemulatedsd
(
struct
fstab_rec
*
fstab
);
int
fs_mgr_swapon_all
(
struct
fstab
*
fstab
);
int
fs_mgr_swapon_all
(
struct
fstab
*
fstab
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment