summaryrefslogtreecommitdiffstats
path: root/cryptfs.h
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2011-08-31 16:14:23 -0700
committerKen Sumrall <ksumrall@android.com>2011-08-31 18:09:35 -0700
commit0b8b59719357fb80c330442787f7d5b1e332263b (patch)
tree4d8b42125be6c78ed47f96bb2a35535649a02d0c /cryptfs.h
parente14fcf99b59954f3b2eb07a3724c078b80d58ffd (diff)
downloadandroid_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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cryptfs.h b/cryptfs.h
index 8b4c37b..a0693d3 100644
--- a/cryptfs.h
+++ b/cryptfs.h
@@ -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