Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f61be9ea authored by Kelvin Zhang's avatar Kelvin Zhang
Browse files

Make some fstab functions available outside of fs_mgr

Test: th
Bug: 353436188
Change-Id: I5d1d80935d345245dece579ea2d2cbdb61ebaf11
parent c2f2263b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@ namespace fs_mgr {
// first match or nullptr.
FstabEntry* GetEntryForPath(Fstab* fstab, const std::string& path);

std::vector<FstabEntry*> GetEntriesForPath(Fstab* fstab, const std::string& path);

// Make sure that the volume 'path' is on is mounted.
// * If 'mount_point' is nullptr, use mount point in fstab. Caller can call
//   fs_mgr_ensure_path_unmounted() with the same 'path' argument to unmount.