diff options
author | NeilBrown <neilb@suse.de> | 2012-02-07 04:04:47 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-02-07 04:04:47 +0100 |
commit | de5a472ea32867d002558bac0d2d2b4faf45c7c4 (patch) | |
tree | 30787d25e64601167c6166ff9407a0bd26a2b78b /Detail.c | |
parent | super1: make aread/awrite always use an aligned buffer. (diff) | |
download | mdadm-de5a472ea32867d002558bac0d2d2b4faf45c7c4.tar.xz mdadm-de5a472ea32867d002558bac0d2d2b4faf45c7c4.zip |
Remove avail_disks arg from 'enough'.
It can easily be calculated from 'avail' and 'raid_disks', and we
will soon have a case where we don't have it easily available to pass
in.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -367,7 +367,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost) if (avail_disks == array.raid_disks) st = ""; else if (!enough(array.level, array.raid_disks, - array.layout, 1, avail, avail_disks)) + array.layout, 1, avail)) st = ", FAILED"; else st = ", degraded"; @@ -580,7 +580,7 @@ This is pretty boring if (brief) printf("\n"); if (test && !enough(array.level, array.raid_disks, array.layout, - 1, avail, avail_disks)) + 1, avail)) rv = 2; free(disks); |