summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2013-12-02 03:03:45 +0100
committerDees Troy <dees_troy@teamw.in>2013-12-19 19:02:44 +0100
commit34684ff3138ca32e62754cfca2a0b2116aa9e32d (patch)
tree4166103c4a2d2f36fde45ff3d4b62515a8051137 /partitionmanager.cpp
parentMerge "Add support for persistent variables in theme's <variables> section" into android-4.4 (diff)
downloadandroid_bootable_recovery-34684ff3138ca32e62754cfca2a0b2116aa9e32d.tar
android_bootable_recovery-34684ff3138ca32e62754cfca2a0b2116aa9e32d.tar.gz
android_bootable_recovery-34684ff3138ca32e62754cfca2a0b2116aa9e32d.tar.bz2
android_bootable_recovery-34684ff3138ca32e62754cfca2a0b2116aa9e32d.tar.lz
android_bootable_recovery-34684ff3138ca32e62754cfca2a0b2116aa9e32d.tar.xz
android_bootable_recovery-34684ff3138ca32e62754cfca2a0b2116aa9e32d.tar.zst
android_bootable_recovery-34684ff3138ca32e62754cfca2a0b2116aa9e32d.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 7634ff047..da11e8dfe 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -36,6 +36,7 @@
#include "twrp-functions.hpp"
#include "fixPermissions.hpp"
#include "twrpDigest.hpp"
+#include "twrpDU.hpp"
#ifdef TW_INCLUDE_CRYPTO
#ifdef TW_INCLUDE_JB_CRYPTO
@@ -46,6 +47,9 @@
#include "cutils/properties.h"
#endif
+TWPartitionManager::TWPartitionManager(void) {
+}
+
int TWPartitionManager::Process_Fstab(string Fstab_Filename, bool Display_Error) {
FILE *fstabFile;
char fstab_line[MAX_FSTAB_LINE_LENGTH];
@@ -772,7 +776,7 @@ int TWPartitionManager::Run_Backup(void) {
time(&total_stop);
int total_time = (int) difftime(total_stop, total_start);
- unsigned long long actual_backup_size = TWFunc::Get_Folder_Size(Full_Backup_Path, true);
+ uint64_t actual_backup_size = du.Get_Folder_Size(Full_Backup_Path);
actual_backup_size /= (1024LLU * 1024LLU);
int prev_img_bps, use_compression;