summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-10-12 21:36:47 +0200
committerDees_Troy <dees_troy@teamw.in>2012-10-12 21:36:47 +0200
commitc154ac27a2725920cce7cfd3ca68962df0686438 (patch)
tree900d7d4cd374d3bdc49fe5f8dabfe8347aec913b
parentFix restore of multiple archives (diff)
downloadandroid_bootable_recovery-c154ac27a2725920cce7cfd3ca68962df0686438.tar
android_bootable_recovery-c154ac27a2725920cce7cfd3ca68962df0686438.tar.gz
android_bootable_recovery-c154ac27a2725920cce7cfd3ca68962df0686438.tar.bz2
android_bootable_recovery-c154ac27a2725920cce7cfd3ca68962df0686438.tar.lz
android_bootable_recovery-c154ac27a2725920cce7cfd3ca68962df0686438.tar.xz
android_bootable_recovery-c154ac27a2725920cce7cfd3ca68962df0686438.tar.zst
android_bootable_recovery-c154ac27a2725920cce7cfd3ca68962df0686438.zip
-rw-r--r--partition.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/partition.cpp b/partition.cpp
index f1ce8bd18..af229294f 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1177,8 +1177,8 @@ bool TWPartition::Backup_DD(string backup_folder) {
Command = "dd if=" + Actual_Block_Device + " of='" + Full_FileName + "'";
LOGI("Backup command: '%s'\n", Command.c_str());
system(Command.c_str());
- if (TWFunc::Get_File_Size(Full_FileName) != Backup_Size) {
- LOGE("Backup file size %lu for '%s' is does not match backup size %llu.\n", TWFunc::Get_File_Size(Full_FileName), Full_FileName.c_str(), Backup_Size);
+ if (TWFunc::Get_File_Size(Full_FileName) == 0) {
+ LOGE("Backup file size for '%s' is 0 bytes.\n", Full_FileName.c_str());
return false;
}
return true;