This patch series implements the suggested design---which, of course, has to be reviewed first.
Klaus Aehlig (4): Add a function to iterate Maybe-valued functions Add a function estimating the redundancy of a group Make hcheck report the redunancy level Add a test for redundancy level Makefile.am | 1 + src/Ganeti/HTools/Program/Hcheck.hs | 31 ++++++++------ src/Ganeti/HTools/RedundancyLevel.hs | 76 +++++++++++++++++++++++++++++++++++ src/Ganeti/Utils.hs | 6 +++ test/hs/shelltests/htools-hcheck.test | 2 + 5 files changed, 104 insertions(+), 12 deletions(-) create mode 100644 src/Ganeti/HTools/RedundancyLevel.hs -- 2.6.0.rc2.230.g3dd15c0
