• Home
  • Raw
  • Download

Lines Matching refs:roots

78     roots.swap(other.roots);  in swap()
83 roots.clear(); in clear()
97 if (index >= int(roots.size()) || roots[index].empty()) { in rootIndex()
113 return roots[index].path; in rootFor()
126 const auto& root = roots[index]; in rootAndSubpathFor()
131 const auto index = roots.size(); in addRoot()
134 roots.push_back({std::move(absolute), path::normalize(backingDir), {it}}); in addRoot()
145 if (index >= int(roots.size())) { in removeRoot()
147 << " out of bounds (total roots count is " << roots.size(); in removeRoot()
151 for (auto bindIt : roots[index].binds) { in removeRoot()
155 if (index + 1 == int(roots.size())) { in removeRoot()
156 roots.pop_back(); in removeRoot()
159 while (roots.back().empty()) { in removeRoot()
160 roots.pop_back(); in removeRoot()
163 roots[index].clear(); in removeRoot()
182 roots[root].binds.push_back(it); in addBind()
192 if (roots[root].path == absolute) { in removeBind()
198 auto& binds = roots[root].binds; in removeBind()
308 std::set<std::string, std::less<>> roots; in loadFrom() member
338 LOG(WARNING) << "[incfs] root '" << *mount.roots.begin() in loadFrom()
345 mount.roots.emplace(mountPoint); in loadFrom()
357 roots.resize(mountsByGroup.size()); in loadFrom()
358 for (auto& root : roots) { in loadFrom()
364 if (mount.roots.empty()) { in loadFrom()
372 Root& root = roots[index]; in loadFrom()
386 root.path = std::move(mount.roots.extract(mount.roots.begin()).value()); in loadFrom()
389 roots.resize(index); in loadFrom()
391 LOG(INFO) << "[incfs] Loaded " << filesystem << " mount info: " << roots.size() in loadFrom()
394 for (auto&& [root, backing, binds] : roots) { in loadFrom()