summaryrefslogtreecommitdiff
path: root/cmds/installd/CacheTracker.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2017-03-22 21:27:40 -0600
committer Jeff Sharkey <jsharkey@android.com> 2017-03-22 21:27:46 -0600
commited909ae8db2f44ce7fe7003c6fee457f13669702 (patch)
treed57c4f275cfa2cc1684abeb9748d0e17098f0f42 /cmds/installd/CacheTracker.cpp
parent7459281f9e1d999281260ff4bbdf3d3e5e0459f5 (diff)
Follow "atomic" to "group" refactoring.
Remove noisy logging about UIDs that are relying on default cache quota of 64MiB. Move away from yucky old statfs() and use statvfs() instead. Test: /data/nativetest/installd_cache_test/installd_cache_test Bug: 35812899, 35684969, 36482620 Change-Id: I3d68da97eac2ebcda489bdf9d27061cac5b3f7cc
Diffstat (limited to 'cmds/installd/CacheTracker.cpp')
-rw-r--r--cmds/installd/CacheTracker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/installd/CacheTracker.cpp b/cmds/installd/CacheTracker.cpp
index fada6991a3..4bfc834d86 100644
--- a/cmds/installd/CacheTracker.cpp
+++ b/cmds/installd/CacheTracker.cpp
@@ -106,11 +106,11 @@ void CacheTracker::loadItemsFrom(const std::string& path) {
switch (p->fts_info) {
case FTS_D: {
auto item = static_cast<CacheItem*>(p->fts_pointer);
- item->atomic |= (getxattr(p->fts_path, kXattrCacheAtomic, nullptr, 0) >= 0);
+ item->group |= (getxattr(p->fts_path, kXattrCacheGroup, nullptr, 0) >= 0);
item->tombstone |= (getxattr(p->fts_path, kXattrCacheTombstone, nullptr, 0) >= 0);
- // When atomic, immediately collect all files under tree
- if (item->atomic) {
+ // When group, immediately collect all files under tree
+ if (item->group) {
while ((p = fts_read(fts)) != nullptr) {
if (p->fts_info == FTS_DP && p->fts_level == item->level) break;
switch (p->fts_info) {