summaryrefslogtreecommitdiffstats
path: root/encryptedfs_provisioning.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-09-20 21:16:13 +0200
committerDoug Zongker <dougz@android.com>2010-09-21 03:07:31 +0200
commitd4208f9f9d4e9f268ba1888c1fe879ee73eb7e47 (patch)
tree17d142b0411f11fcfa3f060f622c0b2dd906577f /encryptedfs_provisioning.c
parentremove unneeded partition roots (diff)
downloadandroid_bootable_recovery-d4208f9f9d4e9f268ba1888c1fe879ee73eb7e47.tar
android_bootable_recovery-d4208f9f9d4e9f268ba1888c1fe879ee73eb7e47.tar.gz
android_bootable_recovery-d4208f9f9d4e9f268ba1888c1fe879ee73eb7e47.tar.bz2
android_bootable_recovery-d4208f9f9d4e9f268ba1888c1fe879ee73eb7e47.tar.lz
android_bootable_recovery-d4208f9f9d4e9f268ba1888c1fe879ee73eb7e47.tar.xz
android_bootable_recovery-d4208f9f9d4e9f268ba1888c1fe879ee73eb7e47.tar.zst
android_bootable_recovery-d4208f9f9d4e9f268ba1888c1fe879ee73eb7e47.zip
Diffstat (limited to 'encryptedfs_provisioning.c')
-rw-r--r--encryptedfs_provisioning.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/encryptedfs_provisioning.c b/encryptedfs_provisioning.c
index 2bcfec161..601c817de 100644
--- a/encryptedfs_provisioning.c
+++ b/encryptedfs_provisioning.c
@@ -186,7 +186,7 @@ int write_encrypted_fs_boolean_property(const char *prop_name, int value) {
int read_encrypted_fs_info(encrypted_fs_info *encrypted_fs_data) {
int result;
int value;
- result = ensure_root_path_mounted("DATA:");
+ result = ensure_path_mounted("/data");
if (result != 0) {
LOGE("Secure FS: error mounting userdata partition.");
return ENCRYPTED_FS_ERROR;
@@ -221,7 +221,7 @@ int read_encrypted_fs_info(encrypted_fs_info *encrypted_fs_data) {
return ENCRYPTED_FS_ERROR;
}
- result = ensure_root_path_unmounted("DATA:");
+ result = ensure_path_unmounted("/data");
if (result != 0) {
LOGE("Secure FS: error unmounting data partition.");
return ENCRYPTED_FS_ERROR;
@@ -232,7 +232,7 @@ int read_encrypted_fs_info(encrypted_fs_info *encrypted_fs_data) {
int restore_encrypted_fs_info(encrypted_fs_info *encrypted_fs_data) {
int result;
- result = ensure_root_path_mounted("DATA:");
+ result = ensure_path_mounted("/data");
if (result != 0) {
LOGE("Secure FS: error mounting userdata partition.");
return ENCRYPTED_FS_ERROR;
@@ -273,7 +273,7 @@ int restore_encrypted_fs_info(encrypted_fs_info *encrypted_fs_data) {
return result;
}
- result = ensure_root_path_unmounted("DATA:");
+ result = ensure_path_unmounted("/data");
if (result != 0) {
LOGE("Secure FS: error unmounting data partition.");
return ENCRYPTED_FS_ERROR;
@@ -281,4 +281,3 @@ int restore_encrypted_fs_info(encrypted_fs_info *encrypted_fs_data) {
return ENCRYPTED_FS_OK;
}
-