diff options
author | Ken Sumrall <ksumrall@android.com> | 2011-08-31 16:14:23 -0700 |
---|---|---|
committer | Ken Sumrall <ksumrall@android.com> | 2011-08-31 18:09:35 -0700 |
commit | 0b8b59719357fb80c330442787f7d5b1e332263b (patch) | |
tree | 4d8b42125be6c78ed47f96bb2a35535649a02d0c /cryptfs.h | |
parent | e14fcf99b59954f3b2eb07a3724c078b80d58ffd (diff) | |
download | android_system_vold-0b8b59719357fb80c330442787f7d5b1e332263b.tar.gz android_system_vold-0b8b59719357fb80c330442787f7d5b1e332263b.tar.bz2 android_system_vold-0b8b59719357fb80c330442787f7d5b1e332263b.zip |
Add the ability to revert a crypto mapping when unmounting a volume
Add the force_and_revert option to the unmount command which will force
the unmount, and revert a crypto mapping. This is used during factory
reset so that when the internal sdcard volume is formatted, it formats
the raw device, not the encrypted mapping.
Change-Id: I36b6ff9bb54863b121de635472a303bf4a2334a9
Diffstat (limited to 'cryptfs.h')
-rw-r--r-- | cryptfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -81,6 +81,7 @@ extern "C" { int cryptfs_setup_volume(const char *label, int major, int minor, char *crypto_dev_path, unsigned int max_pathlen, int *new_major, int *new_minor); + int cryptfs_revert_volume(const char *label); #ifdef __cplusplus } #endif |