summaryrefslogtreecommitdiffstats
path: root/src/qpsearch.cpp
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-01-05 14:17:29 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-01-05 14:17:29 +0100
commit727f2de6ce2de0c28441f34d7b6e3be22e153167 (patch)
tree134f399cb58d89bcb2a5c8fad657b04393a5298a /src/qpsearch.cpp
parentdf353cfc2c2e9d7015e0973d60e2405624a25e39 (diff)
Remove file_size_on_disk field from struct file_recovery_struct
Diffstat (limited to 'src/qpsearch.cpp')
-rw-r--r--src/qpsearch.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qpsearch.cpp b/src/qpsearch.cpp
index 8e4e93e..166fdb5 100644
--- a/src/qpsearch.cpp
+++ b/src/qpsearch.cpp
@@ -264,12 +264,11 @@ pstatus_t QPhotorec::photorec_aux(alloc_data_t *list_search_space)
{
/* try to skip ext2/ext3 indirect block */
if((params->status==STATUS_EXT2_ON || params->status==STATUS_EXT2_ON_SAVE_EVERYTHING) &&
- file_recovery.file_size_on_disk>=12*blocksize &&
+ file_recovery.file_size >= 12*blocksize &&
ind_block(buffer,blocksize)!=0)
{
file_block_append(&file_recovery, list_search_space, &current_search_space, &offset, blocksize, 0);
res=DC_CONTINUE;
- file_recovery.file_size_on_disk+=blocksize;
if(options->verbose > 1)
{
log_verbose("Skipping sector %10lu/%lu\n",
@@ -306,7 +305,6 @@ pstatus_t QPhotorec::photorec_aux(alloc_data_t *list_search_space)
else
res=DC_CONTINUE;
file_recovery.file_size+=blocksize;
- file_recovery.file_size_on_disk+=blocksize;
if(res==DC_STOP)
{
if(options->verbose > 1)