mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Some warnings removal.
This commit is contained in:
parent
83facb4329
commit
2b421becad
3 changed files with 1 additions and 4 deletions
2
dry.c
2
dry.c
|
|
@ -157,7 +157,6 @@ void state_dry(struct snapraid_state* state, block_off_t blockstart, block_off_t
|
|||
char parity_path[PATH_MAX];
|
||||
char qarity_path[PATH_MAX];
|
||||
block_off_t blockmax;
|
||||
data_off_t size;
|
||||
int ret;
|
||||
int parity_f;
|
||||
int qarity_f;
|
||||
|
|
@ -166,7 +165,6 @@ void state_dry(struct snapraid_state* state, block_off_t blockstart, block_off_t
|
|||
printf("Drying...\n");
|
||||
|
||||
blockmax = parity_resize(state);
|
||||
size = blockmax * (data_off_t)state->block_size;
|
||||
|
||||
if (blockstart > blockmax) {
|
||||
fprintf(stderr, "Error in the specified starting block %u. It's bigger than the parity size %u.\n", blockstart, blockmax);
|
||||
|
|
|
|||
1
speed.c
1
speed.c
|
|
@ -103,7 +103,6 @@ void speed(void)
|
|||
|
||||
printf("Murmur3 %"PRIu64" [MB/s]\n", ds / dt);
|
||||
|
||||
count = 0;
|
||||
SPEED_START {
|
||||
raid5_int32r2(buffer, diskmax, block_size);
|
||||
} SPEED_STOP
|
||||
|
|
|
|||
2
sync.c
2
sync.c
|
|
@ -219,6 +219,7 @@ static int state_sync_process(struct snapraid_state* state, int parity_f, int qa
|
|||
if (!block)
|
||||
continue;
|
||||
|
||||
/* now all the blocks have the hash and the parity computed */
|
||||
block_flag_set(block, BLOCK_HAS_HASH | BLOCK_HAS_PARITY);
|
||||
}
|
||||
|
||||
|
|
@ -273,7 +274,6 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t
|
|||
printf("Syncing...\n");
|
||||
|
||||
blockmax = parity_resize(state);
|
||||
|
||||
size = blockmax * (data_off_t)state->block_size;
|
||||
|
||||
if (blockstart > blockmax) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue