PhotoRec: read 512k chunks instead of 128k
This commit is contained in:
parent
3e43d84bdc
commit
26cd126d3f
@ -814,7 +814,7 @@ static int photorec_aux(disk_t *disk_car, partition_t *partition, const int verb
|
|||||||
time_t previous_time;
|
time_t previous_time;
|
||||||
int ind_stop=0;
|
int ind_stop=0;
|
||||||
unsigned int buffer_size;
|
unsigned int buffer_size;
|
||||||
unsigned int read_size;
|
const unsigned int read_size=((*blocksize)>65536?(*blocksize):65536);
|
||||||
alloc_data_t *current_search_space;
|
alloc_data_t *current_search_space;
|
||||||
file_recovery_t file_recovery;
|
file_recovery_t file_recovery;
|
||||||
static alloc_data_t list_file={
|
static alloc_data_t list_file={
|
||||||
@ -823,8 +823,7 @@ static int photorec_aux(disk_t *disk_car, partition_t *partition, const int verb
|
|||||||
static list_cluster_t list_cluster= {
|
static list_cluster_t list_cluster= {
|
||||||
.list = TD_LIST_HEAD_INIT(list_cluster.list)
|
.list = TD_LIST_HEAD_INIT(list_cluster.list)
|
||||||
};
|
};
|
||||||
#define READ_SIZE 256*512
|
#define READ_SIZE 1024*512
|
||||||
read_size=((*blocksize)>8192?(*blocksize):8192);
|
|
||||||
buffer_size=(*blocksize)+READ_SIZE;
|
buffer_size=(*blocksize)+READ_SIZE;
|
||||||
buffer_start=MALLOC(buffer_size);
|
buffer_start=MALLOC(buffer_size);
|
||||||
buffer_olddata=buffer_start;
|
buffer_olddata=buffer_start;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user