summaryrefslogtreecommitdiffstats
path: root/src/psearchn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-09-03 08:04:04 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-09-03 08:04:04 +0200
commit00557961744f0a88000678db179a84a4a0e4fdfd (patch)
treedb0bae677a788104fa71edaebcbfa30402833179 /src/psearchn.c
parentac980c4a61e0158ce5ceec8555a89b38eac5066c (diff)
PhotoRec: reduce the number of backward search
Diffstat (limited to 'src/psearchn.c')
-rw-r--r--src/psearchn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/psearchn.c b/src/psearchn.c
index 865777f..ef094e5 100644
--- a/src/psearchn.c
+++ b/src/psearchn.c
@@ -251,6 +251,7 @@ pstatus_t photorec_aux(struct ph_param *params, const struct ph_options *options
(unsigned long long)((params->partition->part_size-1)/params->disk->sector_size));
}
params->disk->pread(params->disk, buffer, READ_SIZE, offset);
+ header_ignored(NULL);
while(current_search_space!=list_search_space)
{
pfstatus_t file_recovered=PFSTATUS_BAD;
@@ -368,7 +369,7 @@ pstatus_t photorec_aux(struct ph_param *params, const struct ph_options *options
else
{
back=0;
- get_prev_location(list_search_space, &current_search_space, &offset, file_recovery.location.start);
+ get_prev_location_smart(list_search_space, &current_search_space, &offset, file_recovery.location.start);
}
}
if(current_search_space==list_search_space)