diff options
author | Jes Sorensen <jsorensen@fb.com> | 2017-05-16 20:09:57 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-05-16 20:09:57 +0200 |
commit | d16a749444251c12689fa93d398149025a9c2398 (patch) | |
tree | 8a818cc964b203fbd611891ad9f91d3ab50d5510 /restripe.c | |
parent | mdadm: Fix '==' broken formatting (diff) | |
download | mdadm-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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 */ |