summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2013-02-18 02:18:31 +0100
committerbigbiff bigbiff <bigbiff@teamw.in>2013-02-18 02:18:31 +0100
commite6594ab9a3a89a98a06060c9790560b41eb728b1 (patch)
treedd3a9f1349c4fd0e63cc4b439b6eb4f5a31df01c /partition.cpp
parentThis adds a 60 second screen timeout for TWRP. Might consider making this configurable in the future. (diff)
downloadandroid_bootable_recovery-e6594ab9a3a89a98a06060c9790560b41eb728b1.tar
android_bootable_recovery-e6594ab9a3a89a98a06060c9790560b41eb728b1.tar.gz
android_bootable_recovery-e6594ab9a3a89a98a06060c9790560b41eb728b1.tar.bz2
android_bootable_recovery-e6594ab9a3a89a98a06060c9790560b41eb728b1.tar.lz
android_bootable_recovery-e6594ab9a3a89a98a06060c9790560b41eb728b1.tar.xz
android_bootable_recovery-e6594ab9a3a89a98a06060c9790560b41eb728b1.tar.zst
android_bootable_recovery-e6594ab9a3a89a98a06060c9790560b41eb728b1.zip
Diffstat (limited to '')
-rw-r--r--partition.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/partition.cpp b/partition.cpp
index 53e7ba636..73aa8af16 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1313,7 +1313,7 @@ bool TWPartition::Backup_Tar(string backup_folder) {
sprintf(back_name, "%s", Backup_Path.c_str());
tar.setdir(back_name);
tar.setfn(Full_FileName);
- backup_count = tar.splitArchiveThread();
+ backup_count = tar.splitArchiveFork();
if (backup_count == -1) {
LOGE("Error tarring split files!\n");
return false;
@@ -1324,7 +1324,7 @@ bool TWPartition::Backup_Tar(string backup_folder) {
if (use_compression) {
tar.setdir(Backup_Path);
tar.setfn(Full_FileName);
- if (tar.createTarGZThread() != 0)
+ if (tar.createTarGZFork() != 0)
return -1;
string gzname = Full_FileName + ".gz";
rename(gzname.c_str(), Full_FileName.c_str());
@@ -1332,7 +1332,7 @@ bool TWPartition::Backup_Tar(string backup_folder) {
else {
tar.setdir(Backup_Path);
tar.setfn(Full_FileName);
- if (tar.createTarThread() != 0)
+ if (tar.createTarFork() != 0)
return -1;
}
if (TWFunc::Get_File_Size(Full_FileName) == 0) {
@@ -1424,7 +1424,7 @@ bool TWPartition::Restore_Tar(string restore_folder, string Restore_File_System)
twrpTar tar;
tar.setdir("/");
tar.setfn(Full_FileName);
- if (tar.extractTarThread() != 0)
+ if (tar.extractTarFork() != 0)
return false;
sprintf(split_index, "%03i", index);
Full_FileName = restore_folder + "/" + Backup_FileName + split_index;
@@ -1438,7 +1438,7 @@ bool TWPartition::Restore_Tar(string restore_folder, string Restore_File_System)
twrpTar tar;
tar.setdir(Backup_Path);
tar.setfn(Full_FileName);
- if (tar.extractTarThread() != 0)
+ if (tar.extractTarFork() != 0)
return false;
}
return true;