diff --git a/TODO b/TODO index 9dd6f661..346fc83d 100644 --- a/TODO +++ b/TODO @@ -11,11 +11,15 @@ correctly. We can assume a file moved to another disk if it has the same name, size, and timestamp. Directory and inode can be different. -* Add a way to list the content of the array. A new "list" command ? -Something similar at "diff" and "dup". - - Minor +* In the content file save the timestap of the parity files. +If they do not match, stop the processing. +This can be done to avoid to use not syncronized parity and content files, +resulting in wrong data. +But if the sync process is killed we need a way to resyncronize them. +Or maybe we should allow parity never than content, but not viceversa. + * Add an option for dup to list only duplicates with different name. This supposing that if a file has the same name, it's intentionally duplicate. @@ -80,13 +84,6 @@ but kept in the same disk of the array. of the same disk. For safety no real deletion is done. File with the same name will get an extra extension like ".1", ".2". -* In the content file save the timestap of the parity files. -If they do not match, stop the processing. -This can be done to avoid to use not syncronized parity and content files, -resulting in wrong data. -But if the sync process is killed we need a way to resyncronize them. -Or maybe we should allow parity never than content, but not viceversa. - - Major * Use threads to scan all the disks at the same time. diff --git a/speed.c b/speed.c index 9b91b48e..b526d962 100644 --- a/speed.c +++ b/speed.c @@ -123,14 +123,14 @@ void speed(void) printf("Expected fastest hash is "); #if defined(__i386__) || defined(__x86_64__) if (sizeof(void*) == 4 && !cpu_has_slowmult()) - printf("Murmur3"); + printf("murmur3"); else - printf("Spooky2"); + printf("spooky2"); #else if (sizeof(void*) == 4) - printf("Murmur3"); + printf("murmur3"); else - printf("Spooky2"); + printf("spooky2"); #endif printf("\n"); @@ -143,7 +143,13 @@ void speed(void) printf("\n"); - printf("Speed test with %d disk and %d buffer size, for a total of %u KiB...\n", diskmax, block_size, (diskmax + 3) * block_size / 1024); + printf("Speed test using %d buffers of %u bytes, for a total of %u KiB.\n", diskmax, block_size, (diskmax + 3) * block_size / 1024); + printf("All values are in MiB/s.\n"); + printf("\n"); + + printf("Memory write speed using the C memset() function:\n"); + printf("%10s", "memset"); + fflush(stdout); SPEED_START { for(j=0;j