Mark Mounts::RecursivelyListMounts() const

PiperOrigin-RevId: 553472906
Change-Id: Ia222751fd4b978dece6ef12c6677db8f3092ac1b
This commit is contained in:
Wiktor Garbacz 2023-08-03 07:39:37 -07:00 committed by Copybara-Service
parent 4d625e521b
commit 7722c07d0c
2 changed files with 6 additions and 3 deletions

View File

@ -23,7 +23,9 @@
#include <climits>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "google/protobuf/util/message_differencer.h"
#include "absl/container/flat_hash_set.h"
@ -777,8 +779,9 @@ void RecursivelyListMountsImpl(const MountTree& tree,
} // namespace
void Mounts::RecursivelyListMounts(std::vector<std::string>* outside_entries,
std::vector<std::string>* inside_entries) {
void Mounts::RecursivelyListMounts(
std::vector<std::string>* outside_entries,
std::vector<std::string>* inside_entries) const {
RecursivelyListMountsImpl(GetMountTree(), "", outside_entries,
inside_entries);
}

View File

@ -91,7 +91,7 @@ class Mounts {
// inside_entries[i]. The elements of inside_entries are prefixed with either
// 'R' (read-only) or 'W' (writable).
void RecursivelyListMounts(std::vector<std::string>* outside_entries,
std::vector<std::string>* inside_entries);
std::vector<std::string>* inside_entries) const;
absl::StatusOr<std::string> ResolvePath(absl::string_view path) const;