diff options
author | Dees_Troy <dees_troy@teamw.in> | 2012-09-20 21:32:13 +0200 |
---|---|---|
committer | Dees_Troy <dees_troy@teamw.in> | 2012-09-20 21:32:50 +0200 |
commit | c51f1f994ada7b46224f672481c0dacf3894c70b (patch) | |
tree | de20eb047205f9fec817cdd18ec47a82ae16add5 /partition.cpp | |
parent | Fix fstab and unmount problems (diff) | |
download | android_bootable_recovery-c51f1f994ada7b46224f672481c0dacf3894c70b.tar android_bootable_recovery-c51f1f994ada7b46224f672481c0dacf3894c70b.tar.gz android_bootable_recovery-c51f1f994ada7b46224f672481c0dacf3894c70b.tar.bz2 android_bootable_recovery-c51f1f994ada7b46224f672481c0dacf3894c70b.tar.lz android_bootable_recovery-c51f1f994ada7b46224f672481c0dacf3894c70b.tar.xz android_bootable_recovery-c51f1f994ada7b46224f672481c0dacf3894c70b.tar.zst android_bootable_recovery-c51f1f994ada7b46224f672481c0dacf3894c70b.zip |
Diffstat (limited to '')
-rw-r--r-- | partition.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/partition.cpp b/partition.cpp index ad3198ba7..341dee704 100644 --- a/partition.cpp +++ b/partition.cpp @@ -42,6 +42,7 @@ extern "C" { #include "mtdutils/mtdutils.h" #include "mtdutils/mounts.h" #include "makelist.h" + #include "extra-functions.h" } TWPartition::TWPartition(void) { @@ -217,16 +218,19 @@ bool TWPartition::Process_Fstab_Line(string Line, bool Display_Error) { Wipe_During_Factory_Reset = true; Display_Name = "SD-Ext"; Wipe_Available_in_GUI = true; + Removable = true; } #ifdef TW_EXTERNAL_STORAGE_PATH if (Mount_Point == EXPAND(TW_EXTERNAL_STORAGE_PATH)) { Is_Storage = true; Storage_Path = EXPAND(TW_EXTERNAL_STORAGE_PATH); + Removable = true; } #else if (Mount_Point == "/sdcard") { Is_Storage = true; Storage_Path = "/sdcard"; + Removable = true; } #endif #ifdef TW_INTERNAL_STORAGE_PATH @@ -662,6 +666,9 @@ bool TWPartition::Wipe() { return false; } + if (Mount_Point == "/cache") + tmplog_offset = 0; + if (Has_Data_Media) return Wipe_Data_Without_Wiping_Media(); |