59#if defined(LEGACY_COMPONENTS)
60 DobbyRootfs(
const std::shared_ptr<IDobbyUtils>& utils,
61 const std::shared_ptr<const DobbyBundle>& bundle,
62 const std::shared_ptr<const DobbySpecConfig>& config);
64 DobbyRootfs(
const std::shared_ptr<IDobbyUtils>& utils,
65 const std::shared_ptr<const DobbyBundle>& bundle,
66 const std::shared_ptr<const DobbyBundleConfig>& config);
72 const std::string& path()
const;
75 void setPersistence(
bool persist);
82#if defined(LEGACY_COMPONENTS)
83 bool createMountPoint(
int dirfd,
const std::string &path,
bool isDirectory)
const;
85 bool createStandardMountPoints(
int dirfd)
const;
87 bool constructRootfs(
int dirfd,
88 const std::shared_ptr<const DobbySpecConfig>& config);
90 bool createAndWriteFileAt(
int dirFd,
91 const std::string& filePath,
92 const std::string& fileContents,
93 mode_t mode = 0644)
const;
98 const std::shared_ptr<IDobbyUtils> mUtilities;
99 const std::shared_ptr<const DobbyBundle> mBundle;
void unmountAllAt(const std::string &pathPrefix)
Unmounts anything mounted at the given path prefix.
Definition DobbyRootfs.cpp:194