summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-04-05 01:48:21 +0200
committerDees_Troy <dees_troy@teamw.in>2013-04-05 01:48:21 +0200
commit91862e618e4d722ce3e683430ed61f4479b04948 (patch)
tree366f8cf1419b4f01649d5e0f875736d6b613968a /partitionmanager.cpp
parentAdd new SliderValue GUI widget (diff)
downloadandroid_bootable_recovery-91862e618e4d722ce3e683430ed61f4479b04948.tar
android_bootable_recovery-91862e618e4d722ce3e683430ed61f4479b04948.tar.gz
android_bootable_recovery-91862e618e4d722ce3e683430ed61f4479b04948.tar.bz2
android_bootable_recovery-91862e618e4d722ce3e683430ed61f4479b04948.tar.lz
android_bootable_recovery-91862e618e4d722ce3e683430ed61f4479b04948.tar.xz
android_bootable_recovery-91862e618e4d722ce3e683430ed61f4479b04948.tar.zst
android_bootable_recovery-91862e618e4d722ce3e683430ed61f4479b04948.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 69812c86e..5c325773a 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -128,14 +128,14 @@ int TWPartitionManager::Write_Fstab(void) {
if ((*iter)->Can_Be_Mounted) {
Line = (*iter)->Actual_Block_Device + " " + (*iter)->Mount_Point + " " + (*iter)->Current_File_System + " rw\n";
fputs(Line.c_str(), fp);
- // Handle subpartition tracking
- if ((*iter)->Is_SubPartition) {
- TWPartition* ParentPartition = Find_Partition_By_Path((*iter)->SubPartition_Of);
- if (ParentPartition)
- ParentPartition->Has_SubPartition = true;
- else
- LOGERR("Unable to locate parent partition '%s' of '%s'\n", (*iter)->SubPartition_Of.c_str(), (*iter)->Mount_Point.c_str());
- }
+ }
+ // Handle subpartition tracking
+ if ((*iter)->Is_SubPartition) {
+ TWPartition* ParentPartition = Find_Partition_By_Path((*iter)->SubPartition_Of);
+ if (ParentPartition)
+ ParentPartition->Has_SubPartition = true;
+ else
+ LOGERR("Unable to locate parent partition '%s' of '%s'\n", (*iter)->SubPartition_Of.c_str(), (*iter)->Mount_Point.c_str());
}
}
fclose(fp);