summaryrefslogtreecommitdiffstats
path: root/fs_mgr/include
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2013-07-08 19:11:55 -0700
committerKen Sumrall <ksumrall@android.com>2013-07-09 15:04:56 -0700
commit5bc31a2632f453e03edac714b865773970bba608 (patch)
tree66c6fe529fb7b4a7c3703c5290eec988979d3dd7 /fs_mgr/include
parent894de2202162a528d035e6189d2ea927547f669d (diff)
downloadcore-5bc31a2632f453e03edac714b865773970bba608.tar.gz
core-5bc31a2632f453e03edac714b865773970bba608.tar.bz2
core-5bc31a2632f453e03edac714b865773970bba608.zip
Add support for swap entries in fstab
Swap entries can optionally specify a swapprio= or zramsize= flag in the fs_mgr flags field. Change-Id: I30530501efd4112af4e158898a9f65f6443c4fdb
Diffstat (limited to 'fs_mgr/include')
-rw-r--r--fs_mgr/include/fs_mgr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs_mgr/include/fs_mgr.h b/fs_mgr/include/fs_mgr.h
index 05bcc1bdf..110e73830 100644
--- a/fs_mgr/include/fs_mgr.h
+++ b/fs_mgr/include/fs_mgr.h
@@ -38,6 +38,8 @@ struct fstab_rec {
long long length;
char *label;
int partnum;
+ int swap_prio;
+ unsigned int zram_size;
};
struct fstab *fs_mgr_read_fstab(const char *fstab_path);
@@ -56,6 +58,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_nonremovable(struct fstab_rec *fstab);
int fs_mgr_is_encryptable(struct fstab_rec *fstab);
+int fs_mgr_swapon_all(struct fstab *fstab);
#ifdef __cplusplus
}
#endif