summaryrefslogtreecommitdiffstats
path: root/src/filegen.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-04-27 08:39:24 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-04-27 08:39:24 +0200
commitc1afbdf78024f1590b7805244ddc40ba16297379 (patch)
treee2f5a9d72e1a59569cfcb21342c5cfaa4419086a /src/filegen.h
parent8ee9f770fa81752c44b9bfc38e04ab88eafeec4a (diff)
PhotoRec: modify internals for brute-force recovery
Diffstat (limited to 'src/filegen.h')
-rw-r--r--src/filegen.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/filegen.h b/src/filegen.h
index dc3ba36..1fc1cde 100644
--- a/src/filegen.h
+++ b/src/filegen.h
@@ -73,6 +73,7 @@ struct file_recovery_struct
uint64_t min_filesize;
uint64_t offset_ok;
uint64_t offset_error;
+ uint64_t extra; /* extra bytes between offset_ok and offset_error */
uint64_t calculated_file_size;
int (*data_check)(const unsigned char*buffer, const unsigned int buffer_size, file_recovery_t *file_recovery);
/* data_check returns 0: bad, 1: EOF not found, 2: EOF
@@ -80,6 +81,10 @@ struct file_recovery_struct
*/
void (*file_check)(file_recovery_t *file_recovery);
void (*file_rename)(const char *old_filename);
+ uint64_t checkpoint_offset;
+ int checkpoint_status; /* 0=suspend at offset_checkpoint if offset_checkpoint>0, 1=resume at offset_checkpoint */
+ unsigned int blocksize;
+ unsigned int flags;
};
struct file_hint_struct