summaryrefslogtreecommitdiffstats
path: root/restripe.c
diff options
context:
space:
mode:
authorJes Sorensen <jsorensen@fb.com>2017-05-16 20:09:57 +0200
committerJes Sorensen <jsorensen@fb.com>2017-05-16 20:09:57 +0200
commitd16a749444251c12689fa93d398149025a9c2398 (patch)
tree8a818cc964b203fbd611891ad9f91d3ab50d5510 /restripe.c
parentmdadm: Fix '==' broken formatting (diff)
downloadmdadm-d16a749444251c12689fa93d398149025a9c2398.tar.xz
mdadm-d16a749444251c12689fa93d398149025a9c2398.zip
mdadm: Fixup != broken formatting
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'restripe.c')
-rw-r--r--restripe.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/restripe.c b/restripe.c
index 6b31695b..31b07e89 100644
--- a/restripe.c
+++ b/restripe.c
@@ -581,14 +581,16 @@ int save_stripes(int *source, unsigned long long *offsets,
raid_disks, level, layout);
if (dnum < 0) abort();
if (source[dnum] < 0 ||
- lseek64(source[dnum], offsets[dnum]+offset, 0) < 0 ||
- read(source[dnum], buf+disk * chunk_size, chunk_size)
- != chunk_size)
+ lseek64(source[dnum],
+ offsets[dnum] + offset, 0) < 0 ||
+ read(source[dnum], buf+disk * chunk_size,
+ chunk_size) != chunk_size) {
if (failed <= 2) {
fdisk[failed] = dnum;
fblock[failed] = disk;
failed++;
}
+ }
}
if (failed == 0 || fblock[0] >= data_disks)
/* all data disks are good */