summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-11 02:32:10 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-11 02:32:20 +0200
commit657c30948694632e937da9a4e61219c5e4bf95a0 (patch)
tree169514d80d22ba9bb4ac4378de140a9a9e56620b /partitionmanager.cpp
parentMore Partition Manager functionality (diff)
downloadandroid_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar.gz
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar.bz2
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar.lz
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar.xz
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar.zst
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 3509c4c3e..47cc84746 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -116,7 +116,7 @@ int TWPartitionManager::Mount_By_Path(string Path, bool Display_Error) {
// Iterate through all partitions
for (iter = Partitions.begin(); iter != Partitions.end(); iter++) {
- if ((*iter)->Mount_Point == Local_Path) {
+ if ((*iter)->Mount_Point == Local_Path || (!(*iter)->Symlink_Mount_Point.empty() && (*iter)->Symlink_Mount_Point == Local_Path)) {
ret = (*iter)->Mount(Display_Error);
found = true;
} else if ((*iter)->Is_SubPartition && (*iter)->SubPartition_Of == Local_Path) {
@@ -185,7 +185,7 @@ int TWPartitionManager::UnMount_By_Path(string Path, bool Display_Error) {
// Iterate through all partitions
for (iter = Partitions.begin(); iter != Partitions.end(); iter++) {
- if ((*iter)->Mount_Point == Local_Path) {
+ if ((*iter)->Mount_Point == Local_Path || (!(*iter)->Symlink_Mount_Point.empty() && (*iter)->Symlink_Mount_Point == Local_Path)) {
ret = (*iter)->UnMount(Display_Error);
found = true;
} else if ((*iter)->Is_SubPartition && (*iter)->SubPartition_Of == Local_Path) {
@@ -297,7 +297,7 @@ TWPartition* TWPartitionManager::Find_Partition_By_Path(string Path) {
string Local_Path = Get_Root_Path(Path);
for (iter = Partitions.begin(); iter != Partitions.end(); iter++) {
- if ((*iter)->Mount_Point == Local_Path)
+ if ((*iter)->Mount_Point == Local_Path || (!(*iter)->Symlink_Mount_Point.empty() && (*iter)->Symlink_Mount_Point == Local_Path))
return (*iter);
}
return NULL;
@@ -555,7 +555,7 @@ int TWPartitionManager::Wipe_By_Path(string Path) {
// Iterate through all partitions
for (iter = Partitions.begin(); iter != Partitions.end(); iter++) {
- if ((*iter)->Mount_Point == Local_Path) {
+ if ((*iter)->Mount_Point == Local_Path || (!(*iter)->Symlink_Mount_Point.empty() && (*iter)->Symlink_Mount_Point == Local_Path)) {
ret = (*iter)->Wipe();
found = true;
} else if ((*iter)->Is_SubPartition && (*iter)->SubPartition_Of == Local_Path) {