mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 06:10:13 -05:00
A little renaming.
This commit is contained in:
parent
e80d0ccdcf
commit
7a10f95465
1 changed files with 2 additions and 2 deletions
4
parity.c
4
parity.c
|
|
@ -26,13 +26,13 @@
|
||||||
|
|
||||||
block_off_t parity_resize(struct snapraid_state* state)
|
block_off_t parity_resize(struct snapraid_state* state)
|
||||||
{
|
{
|
||||||
unsigned disk_count = tommy_array_size(&state->diskarr);
|
unsigned diskmax = tommy_array_size(&state->diskarr);
|
||||||
block_off_t parity_block;
|
block_off_t parity_block;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
/* compute the size of the parity file */
|
/* compute the size of the parity file */
|
||||||
parity_block = 0;
|
parity_block = 0;
|
||||||
for(i=0;i<disk_count;++i) {
|
for(i=0;i<diskmax;++i) {
|
||||||
struct snapraid_disk* disk = tommy_array_get(&state->diskarr, i);
|
struct snapraid_disk* disk = tommy_array_get(&state->diskarr, i);
|
||||||
|
|
||||||
/* start from the declared size */
|
/* start from the declared size */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue