mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Documentation and comment changes.
This commit is contained in:
parent
877d781204
commit
d3086339aa
10 changed files with 106 additions and 107 deletions
8
mktest.c
8
mktest.c
|
|
@ -149,7 +149,13 @@ void generate(int disk, int size)
|
|||
|
||||
count = size;
|
||||
while (count) {
|
||||
fputc(rnd(256), f);
|
||||
/* We don't write zero bytes because we want to test */
|
||||
/* the recovering of new files, after an aborted sync */
|
||||
/* If the files contains full blocks at zero */
|
||||
/* this is an impossible condition to recover */
|
||||
/* because we cannot differentiate between an unused block */
|
||||
/* and a file filled with 0 */
|
||||
fputc(rndnotzero(256), f);
|
||||
--count;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue