diff options
author | Paul Lawrence <paullawrence@google.com> | 2015-11-13 18:25:09 +0100 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-11-13 18:25:09 +0100 |
commit | fd1bfa2a41f5001b5e44dcfcae7cbf22d95de1a3 (patch) | |
tree | 91a8d5933cc57dd34e92d913dfc261ed3d1855b4 /roots.h | |
parent | Merge "We can use fclose directly in std::unique_ptr." (diff) | |
parent | Create convert_fbe breadcrumb file to support conversion to FBE (diff) | |
download | android_bootable_recovery-fd1bfa2a41f5001b5e44dcfcae7cbf22d95de1a3.tar android_bootable_recovery-fd1bfa2a41f5001b5e44dcfcae7cbf22d95de1a3.tar.gz android_bootable_recovery-fd1bfa2a41f5001b5e44dcfcae7cbf22d95de1a3.tar.bz2 android_bootable_recovery-fd1bfa2a41f5001b5e44dcfcae7cbf22d95de1a3.tar.lz android_bootable_recovery-fd1bfa2a41f5001b5e44dcfcae7cbf22d95de1a3.tar.xz android_bootable_recovery-fd1bfa2a41f5001b5e44dcfcae7cbf22d95de1a3.tar.zst android_bootable_recovery-fd1bfa2a41f5001b5e44dcfcae7cbf22d95de1a3.zip |
Diffstat (limited to '')
-rw-r--r-- | roots.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -41,6 +41,12 @@ int ensure_path_unmounted(const char* path); // it is mounted. int format_volume(const char* volume); +// Reformat the given volume (must be the mount point only, eg +// "/cache"), no paths permitted. Attempts to unmount the volume if +// it is mounted. +// Copies 'directory' to root of the newly formatted volume +int format_volume(const char* volume, const char* directory); + // Ensure that all and only the volumes that packages expect to find // mounted (/tmp and /cache) are mounted. Returns 0 on success. int setup_install_mounts(); |