summaryrefslogtreecommitdiffstats
path: root/Volume.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Volume.cpp')
-rw-r--r--Volume.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Volume.cpp b/Volume.cpp
index 497a7be..625e94d 100644
--- a/Volume.cpp
+++ b/Volume.cpp
@@ -395,12 +395,12 @@ int Volume::mountVol() {
return -1;
}
- if (cryptfs_setup_volume(getLabel(), MAJOR(deviceNodes[0]), MINOR(deviceNodes[0]),
- new_sys_path, sizeof(new_sys_path),
- &new_major, &new_minor)) {
+// if (cryptfs_setup_volume(getLabel(), MAJOR(deviceNodes[0]), MINOR(deviceNodes[0]),
+// new_sys_path, sizeof(new_sys_path),
+// &new_major, &new_minor)) {
SLOGE("Cannot setup encryption mapping for %s\n", getMountpoint());
return -1;
- }
+// }
/* We now have the new sysfs path for the decrypted block device, and the
* majore and minor numbers for it. So, create the device, update the
* path to the new sysfs path, and continue.
@@ -587,8 +587,8 @@ int Volume::unmountVol(bool force, bool revert) {
* the device info to the original values.
*/
if (revert && isDecrypted()) {
- cryptfs_revert_volume(getLabel());
- revertDeviceInfo();
+// cryptfs_revert_volume(getLabel());
+// revertDeviceInfo();
SLOGI("Encrypted volume %s reverted successfully", getMountpoint());
}