summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index fc76c1ada..77cf37e50 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -611,6 +611,8 @@ bool TWPartitionManager::Backup_Partition(TWPartition* Part, string Backup_Folde
if ((*subpart)->Can_Be_Backed_Up && (*subpart)->Is_SubPartition && (*subpart)->SubPartition_Of == Part->Mount_Point) {
if (!(*subpart)->Backup(Backup_Folder))
return false;
+ sync();
+ sync();
if (!Make_MD5(generate_md5, Backup_Folder, (*subpart)->Backup_FileName))
return false;
if (Part->Backup_Method == 1) {
@@ -1102,14 +1104,14 @@ int TWPartitionManager::Wipe_Dalvik_Cache(void) {
}
}
TWPartition* sdext = Find_Partition_By_Path("/sd-ext");
- if (sdext != NULL) {
- if (sdext->Is_Present && sdext->Mount(false)) {
- if (stat("/sd-ext/dalvik-cache", &st) == 0) {
- TWFunc::removeDir("/sd-ext/dalvik-cache", false);
- gui_print("Cleaned: /sd-ext/dalvik-cache...\n");
- }
+ if (sdext && sdext->Is_Present && sdext->Mount(false))
+ {
+ if (stat("/sd-ext/dalvik-cache", &st) == 0)
+ {
+ TWFunc::removeDir("/sd-ext/dalvik-cache", false);
+ gui_print("Cleaned: /sd-ext/dalvik-cache...\n");
}
- }
+ }
gui_print("-- Dalvik Cache Directories Wipe Complete!\n\n");
return true;
}
@@ -1451,6 +1453,7 @@ int TWPartitionManager::Decrypt_Device(string Password) {
sdcard->Mount(false);
}
} else {
+ LOGINFO("External storage '%s' is not encrypted.\n", sdcard->Mount_Point.c_str());
sdcard->Is_Decrypted = false;
sdcard->Decrypted_Block_Device = "";
}
@@ -1890,4 +1893,4 @@ void TWPartitionManager::Output_Storage_Fstab(void) {
}
}
fclose(fp);
-} \ No newline at end of file
+}