aboutsummaryrefslogtreecommitdiffstats
path: root/roots.h
diff options
context:
space:
mode:
Diffstat (limited to 'roots.h')
-rw-r--r--roots.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/roots.h b/roots.h
index f3e1903..e38707e 100644
--- a/roots.h
+++ b/roots.h
@@ -28,11 +28,11 @@ Volume* volume_for_path(const char* path);
// Make sure that the volume 'path' is on is mounted. Returns 0 on
// success (volume is mounted).
-int ensure_volume_mounted(Volume* v);
-int ensure_path_mounted(const char* path);
+int ensure_volume_mounted(Volume* v, bool force_rw=false);
+int ensure_path_mounted(const char* path, bool force_rw=false);
// Similar to ensure_path_mounted, but allows one to specify the mount_point.
-int ensure_path_mounted_at(const char* path, const char* mount_point);
+int ensure_path_mounted_at(const char* path, const char* mount_point, bool force_rw=false);
// Make sure that the volume 'path' is on is unmounted. Returns 0 on
// success (volume is unmounted);
@@ -52,6 +52,10 @@ int get_num_volumes();
int is_data_media();
+bool volume_is_mountable(Volume *v);
+bool volume_is_readonly(Volume *v);
+bool volume_is_verity(Volume *v);
+
#define MAX_NUM_MANAGED_VOLUMES 10
#endif // RECOVERY_ROOTS_H_