From 423f1e94f58891347d06b7a881ce6b1e67ac8339 Mon Sep 17 00:00:00 2001 From: Tom Marshall Date: Mon, 16 Nov 2015 13:48:28 -0800 Subject: recovery: bu: Implement backup/restore Change-Id: I9e684868ce15aaaed3a40338dadc20b003b50ade --- roots.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'roots.h') 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_ -- cgit v1.1