OSDN Git Service

Define range of GIDs for cached app data.
authorJeff Sharkey <jsharkey@android.com>
Tue, 13 Dec 2016 21:03:19 +0000 (14:03 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 13 Dec 2016 21:22:55 +0000 (14:22 -0700)
commit934bc86df3e9593551e1a09e242c72f0ee1afb3e
tree747e62fbc5af8f2f1ad6f658bcb5c6080c441f76
parent2eaba9343f1726d3c4a23717ba3a5cc66c8374d2
Define range of GIDs for cached app data.

To support upcoming disk usage calculation optimizations, this change
creates a new GID for each app that will be used to mark its cached
data.  We're allocating these unique GIDs so that we can use
quotactl() to track cached data on a per-app basis.

Test: builds, boots, tests pass
Bug: 27948817
Change-Id: Ic00c39ccedc23d5d43988029e9921679126f8f2d
libc/bionic/grp_pwd.cpp
tests/grp_pwd_test.cpp