diff options
author | Paul Lawrence <paullawrence@google.com> | 2015-11-05 22:38:40 +0100 |
---|---|---|
committer | Paul Lawrence <paullawrence@google.com> | 2015-11-13 16:49:31 +0100 |
commit | d0db337d727707977fa562bcc492b27270e67937 (patch) | |
tree | ce8ca7e2cf3ae6ace1a36120ed25bc9f67672852 /roots.h | |
parent | Merge "uncrypt: remove O_SYNC to avoid time-out failures" (diff) | |
download | android_bootable_recovery-d0db337d727707977fa562bcc492b27270e67937.tar android_bootable_recovery-d0db337d727707977fa562bcc492b27270e67937.tar.gz android_bootable_recovery-d0db337d727707977fa562bcc492b27270e67937.tar.bz2 android_bootable_recovery-d0db337d727707977fa562bcc492b27270e67937.tar.lz android_bootable_recovery-d0db337d727707977fa562bcc492b27270e67937.tar.xz android_bootable_recovery-d0db337d727707977fa562bcc492b27270e67937.tar.zst android_bootable_recovery-d0db337d727707977fa562bcc492b27270e67937.zip |
Diffstat (limited to 'roots.h')
-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(); |