Lines Matching refs:root

126     const auto& root = roots[index];  in rootAndSubpathFor()  local
127 return {root.path, path::join(bindSubdir, pastBindSubdir)}; in rootAndSubpathFor()
130 void MountRegistry::Mounts::addRoot(std::string_view root, std::string_view backingDir) { in addRoot() argument
132 auto absolute = path::normalize(root); in addRoot()
137 void MountRegistry::Mounts::removeRoot(std::string_view root) { in removeRoot() argument
138 auto absolute = path::normalize(root); in removeRoot()
141 LOG(WARNING) << "[incfs] Trying to remove non-existent root '" << root << '\''; in removeRoot()
146 LOG(ERROR) << "[incfs] Root '" << root << "' has index " << index in removeRoot()
171 auto [root, rootIt] = rootIndex(srcAbsolute); in moveBind()
172 if (root < 0) { in moveBind()
177 if (roots[root].path == srcAbsolute) { in moveBind()
179 roots[root].path = destAbsolute; in moveBind()
187 root}) in moveBind()
190 const auto bindIt = std::find(roots[root].binds.begin(), roots[root].binds.end(), rootIt); in moveBind()
196 auto [root, rootIt] = rootIndex(whatAbsolute); in addBind()
197 if (root < 0) { in addBind()
208 std::pair{std::move(realSubdir), root}) in addBind()
210 roots[root].binds.push_back(it); in addBind()
215 auto [root, rootIt] = rootIndex(absolute); in removeBind()
216 if (root < 0) { in removeBind()
220 if (roots[root].path == absolute) { in removeBind()
226 auto& binds = roots[root].binds; in removeBind()
249 auto [root, subpath] = mMounts.rootAndSubpathFor(path); in rootAndSubpathFor()
250 return {std::string(root), std::move(subpath)}; in rootAndSubpathFor()
322 std::string root; in loadFrom() member
350 if (mount.root.empty()) { in loadFrom()
351 mount.root.assign(mountPoint); in loadFrom()
355 LOG(WARNING) << "[incfs] incfs root '" << mount.root in loadFrom()
371 for (auto& root : roots) { in loadFrom() local
372 root.binds.clear(); in loadFrom()
377 Root& root = roots[index]; in loadFrom() local
378 auto& binds = root.binds; in loadFrom()
387 root.path = std::move(mount.root); in loadFrom()
388 root.backing = std::move(mount.backing); in loadFrom()
395 for (auto&& [root, backing, binds] : roots) { in loadFrom()
396 LOG(INFO) << "[incfs] '" << root << '\''; in loadFrom()