diff options
author | Tom Marshall <tdm@cyngn.com> | 2015-11-16 13:48:28 -0800 |
---|---|---|
committer | Tom Marshall <tdm@cyngn.com> | 2015-11-25 15:34:35 -0800 |
commit | 423f1e94f58891347d06b7a881ce6b1e67ac8339 (patch) | |
tree | 3c761f624080ded84a7bb5d68e2af75563e7e523 /roots.h | |
parent | ffc8a8702d9e1568995ce155c648fd029909cdac (diff) | |
download | bootable_recovery-423f1e94f58891347d06b7a881ce6b1e67ac8339.zip bootable_recovery-423f1e94f58891347d06b7a881ce6b1e67ac8339.tar.gz bootable_recovery-423f1e94f58891347d06b7a881ce6b1e67ac8339.tar.bz2 |
recovery: bu: Implement backup/restore
Change-Id: I9e684868ce15aaaed3a40338dadc20b003b50ade
Diffstat (limited to 'roots.h')
-rw-r--r-- | roots.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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_ |