diff options
author | Jeff Sharkey <jsharkey@android.com> | 2016-12-14 12:00:51 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2016-12-15 16:35:50 -0700 |
commit | 6d89610d1ab32cc75473c873aa07d6e40fe20c8d (patch) | |
tree | 7fcd8a70a3ec7135cbb1daa6bb3b00491ba9ecfe /fs_mgr/include | |
parent | 9a0fd1d5d303b0d39b051bd3324b30a3afa0635f (diff) | |
download | core-6d89610d1ab32cc75473c873aa07d6e40fe20c8d.tar.gz core-6d89610d1ab32cc75473c873aa07d6e40fe20c8d.tar.bz2 core-6d89610d1ab32cc75473c873aa07d6e40fe20c8d.zip |
Add fs_mgr option to enable/disable quotas.
To support upcoming disk usage calculation optimizations, this change
adds a new 'quota' mount flag. As part of mounting an ext4 device,
we now enable/disable the quota feature using tune2fs to match the
requested value in the fstab.
When changing the quota status, we force a fsck pass on the device
before actually mounting it to prime the quota data structures which
are stored in hidden inodes.
Changing quota state and priming the data structures needs to happen
before we actually mount the device, so fs_mgr is the best place to
place this logic.
Test: builds, boots, enables and disables quota
Bug: 27948817
Change-Id: I7ccbf97cbc4a679bdd7a31a77be4b99aa9a88e66
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 ed22e9086..e7a0a1d74 100644 --- a/fs_mgr/include/fs_mgr.h +++ b/fs_mgr/include/fs_mgr.h @@ -123,6 +123,7 @@ int fs_mgr_is_notrim(struct fstab_rec *fstab); int fs_mgr_is_formattable(struct fstab_rec *fstab); int fs_mgr_is_nofail(struct fstab_rec *fstab); int fs_mgr_is_latemount(struct fstab_rec *fstab); +int fs_mgr_is_quota(struct fstab_rec *fstab); int fs_mgr_swapon_all(struct fstab *fstab); int fs_mgr_do_format(struct fstab_rec *fstab, bool reserve_footer); |