summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-27 18:38:38 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-27 18:40:09 +0200
commit9350b8d6ed0100c6a1a613207841629fa6303928 (patch)
tree42d90eccc39b95c27e0272c547e42f24fff4781d /partition.cpp
parentPort backup name checking to Partition Manager (diff)
downloadandroid_bootable_recovery-9350b8d6ed0100c6a1a613207841629fa6303928.tar
android_bootable_recovery-9350b8d6ed0100c6a1a613207841629fa6303928.tar.gz
android_bootable_recovery-9350b8d6ed0100c6a1a613207841629fa6303928.tar.bz2
android_bootable_recovery-9350b8d6ed0100c6a1a613207841629fa6303928.tar.lz
android_bootable_recovery-9350b8d6ed0100c6a1a613207841629fa6303928.tar.xz
android_bootable_recovery-9350b8d6ed0100c6a1a613207841629fa6303928.tar.zst
android_bootable_recovery-9350b8d6ed0100c6a1a613207841629fa6303928.zip
Diffstat (limited to '')
-rw-r--r--partition.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/partition.cpp b/partition.cpp
index 12e1f5339..633011ba6 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -624,14 +624,6 @@ bool TWPartition::Find_Partition_Size(void) {
return false;
}
-void TWPartition::Flip_Block_Device(void) {
- string temp;
-
- temp = Alternate_Block_Device;
- Primary_Block_Device = Alternate_Block_Device;
- Alternate_Block_Device = temp;
-}
-
bool TWPartition::Is_Mounted(void) {
if (!Can_Be_Mounted)
return false;
@@ -670,6 +662,7 @@ bool TWPartition::Mount(bool Display_Error) {
LOGE("Unable to mount '%s'\n", Mount_Point.c_str());
else
LOGI("Unable to mount '%s'\n", Mount_Point.c_str());
+ LOGI("Actual block device: '%s', current file system: '%s'\n", Actual_Block_Device.c_str(), Current_File_System.c_str());
return false;
} else {
if (Removable)
@@ -1349,7 +1342,6 @@ void TWPartition::Find_Actual_Block_Device(void) {
Is_Present = true;
Actual_Block_Device = Primary_Block_Device;
} else if (!Alternate_Block_Device.empty() && TWFunc::Path_Exists(Alternate_Block_Device)) {
- Flip_Block_Device();
Actual_Block_Device = Primary_Block_Device;
Is_Present = true;
} else