summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2016-12-12 17:32:56 -0700
committer Jeff Sharkey <jsharkey@android.com> 2017-01-03 10:26:25 -0700
commit3dfae0c008576c873c4039bb4c2e54a6adf3720a (patch)
tree19a2203f7a464e455a1786b214c1947fc185070f /vulkan/libvulkan/api.cpp
parent1efda0b1d68682116cca9e7e6ab513ae59d60d8b (diff)
Offer to measure disk stats using quotas.
Now we're getting somewhere! This CL starts using quotactl() to read UID/GID quota statistics when called with FLAG_USE_QUOTA, otherwise it continues using the old heavy-weight traversal for calculation. We now set the recently defined per-app GID used for identifying cached data, and we use the sticky GID bit on cache directories to ensure that newly created data inherits the GID for tracking purposes. For any existing apps during an upgrade, an initial bootstrapping case will recursively set this new GID. This change also shuffles around a bunch of the tedious manual accounting logic so that we exactly match the new quota statistics. Test: builds, boots, quota stats match manual stats Bug: 27948817 Change-Id: I8512c3193ce698f197a3f446e625d6a1c74e7649
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions