From f61be9ea3965d0e59e47b47013712fe00f59c01f Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Tue, 30 Jul 2024 15:31:33 -0700 Subject: [PATCH] Make some fstab functions available outside of fs_mgr Test: th Bug: 353436188 Change-Id: I5d1d80935d345245dece579ea2d2cbdb61ebaf11 --- fs_mgr/include/fs_mgr/roots.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs_mgr/include/fs_mgr/roots.h b/fs_mgr/include/fs_mgr/roots.h index 65c59cfe6..e19f9ad53 100644 --- a/fs_mgr/include/fs_mgr/roots.h +++ b/fs_mgr/include/fs_mgr/roots.h @@ -29,6 +29,8 @@ namespace fs_mgr { // first match or nullptr. FstabEntry* GetEntryForPath(Fstab* fstab, const std::string& path); +std::vector 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.