summaryrefslogtreecommitdiffstats
path: root/Detail.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-02-07 04:04:47 +0100
committerNeilBrown <neilb@suse.de>2012-02-07 04:04:47 +0100
commitde5a472ea32867d002558bac0d2d2b4faf45c7c4 (patch)
tree30787d25e64601167c6166ff9407a0bd26a2b78b /Detail.c
parentsuper1: make aread/awrite always use an aligned buffer. (diff)
downloadmdadm-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Detail.c b/Detail.c
index e7d16812..1d7e3a16 100644
--- a/Detail.c
+++ b/Detail.c
@@ -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);