summaryrefslogtreecommitdiff
path: root/src/ddhardrescue.c
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2011-02-22 16:23:52 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2011-02-22 16:23:52 +0000
commitebc3e0991986c8cf300312fff557b9670835cdb4 (patch)
treeb1e7e0924c237557ddcf47d2a36d60e8a6b81451 /src/ddhardrescue.c
parent319f923c57c640dd35679817924d063e6741b623 (diff)
download2011-ddhardrescue-ebc3e0991986c8cf300312fff557b9670835cdb4.tar.gz
2011-ddhardrescue-ebc3e0991986c8cf300312fff557b9670835cdb4.tar.bz2
2011-ddhardrescue-ebc3e0991986c8cf300312fff557b9670835cdb4.zip
Fonction slicesFindLargestFast() et semble bien marcher.
Passage au 64 bits (long long int), correction de quelques cast implicites détruisant de l'information utile. Peaufinnage de la fonction slicesDump(), mais c'est pas encore terminé. En tout cas le calcul du blockSize à l'air d'être meilleur à présent, disons qu'on voit la fin des informations. git-svn-id: file:///var/svn/2011-ddhardrescue/trunk@4 d3078510-dda0-49f1-841c-895ef4b7ec81
Diffstat (limited to 'src/ddhardrescue.c')
-rwxr-xr-xsrc/ddhardrescue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ddhardrescue.c b/src/ddhardrescue.c
index a99b9d8..f97ae99 100755
--- a/src/ddhardrescue.c
+++ b/src/ddhardrescue.c
@@ -24,7 +24,7 @@ int main() {
dst="./test.img";
ddOpts="";
beginSector=0;
- endSector=19999;
+ endSector=21474836480ULL; //10 Tio
// depth=1;
/*
endSector=1999999999;
@@ -32,13 +32,14 @@ int main() {
*/
//TODO signal...
+ srand(4);
slices=recover(src,dst,ddOpts,beginSector,endSector/*,depth*/);
blockSize=0;
dump=slicesDump(slices, &blockSize, 1000, beginSector, endSector);
puts(dump);
free(dump);
- printf("blockSize==%ld\n", blockSize);
+ printf("blockSize==%lld\n", blockSize);
printf("c==%ld\n", c);
printf("slices->count==%d\n", slices->count);