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
diff --git a/cryptfs.h b/cryptfs.h
index 8b4c37b..a0693d3 100644
--- a/cryptfs.h
+++ b/cryptfs.h
@@ -81,6 +81,7 @@
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