summaryrefslogtreecommitdiff
path: root/restripe.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-06-19 12:31:45 +1000
committerNeilBrown <neilb@suse.de>2013-06-19 12:31:45 +1000
commit1011e8344a6b881883af57959cdd9ec7f9084407 (patch)
tree01680ce6a6696a200b534e4c434fe0078b8933d6 /restripe.c
parente6dd89da86813679fae44e472ea470a943f133e2 (diff)
Remove lots of unnecessary white space.
Now that I am using white-space mode in Emacs I can see all of this, and I don't like it :-) Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'restripe.c')
-rw-r--r--restripe.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/restripe.c b/restripe.c
index 90896c89..93ef056e 100644
--- a/restripe.c
+++ b/restripe.c
@@ -83,7 +83,6 @@ int geo_map(int block, unsigned long long stripe, int raid_disks,
case 500 + ALGORITHM_PARITY_0:
return block + 1;
-
case 600 + ALGORITHM_PARITY_N_6:
if (block == -2)
return raid_disks - 1;
@@ -131,7 +130,6 @@ int geo_map(int block, unsigned long long stripe, int raid_disks,
return raid_disks - 1;
return block + 1;
-
case 600 + ALGORITHM_PARITY_0:
if (block == -1)
return 0;
@@ -173,7 +171,6 @@ int geo_map(int block, unsigned long long stripe, int raid_disks,
if (block == -2) return (pd+1) % raid_disks;
return (pd + 2 + block) % raid_disks;
-
case 600 + ALGORITHM_ROTATING_N_RESTART:
/* Same a left_asymmetric, by first stripe is
* D D D P Q rather than
@@ -210,7 +207,6 @@ static int is_ddf(int layout)
}
}
-
void xor_blocks(char *target, char **sources, int disks, int size)
{
int i, j;
@@ -243,7 +239,6 @@ void qsyndrome(uint8_t *p, uint8_t *q, uint8_t **sources, int disks, int size)
}
}
-
/*
* The following was taken from linux/drivers/md/mktables.c, and modified
* to create in-memory tables rather than C code
@@ -436,11 +431,9 @@ int raid6_check_disks(int data_disks, int start, int chunk_size,
if((Px != 0) && (Qx == 0))
curr_broken_disk = diskP;
-
if((Px == 0) && (Qx != 0))
curr_broken_disk = diskQ;
-
if((Px != 0) && (Qx != 0)) {
data_id = (raid6_gflog[Qx] - raid6_gflog[Px]);
if(data_id < 0) data_id += 255;
@@ -780,7 +773,7 @@ int restore_stripes(int *dest, unsigned long long *offsets,
syndrome_disks = data_disks;
}
qsyndrome((uint8_t*)stripes[disk],
- (uint8_t*)stripes[qdisk],
+ (uint8_t*)stripes[qdisk],
(uint8_t**)blocks,
syndrome_disks, chunk_size);
break;
@@ -953,7 +946,7 @@ main(int argc, char *argv[])
*p++ = '\0';
offsets[i] = atoll(p) * 512;
}
-
+
fds[i] = open(argv[9+i], O_RDWR);
if (fds[i] < 0) {
perror(argv[9+i]);