Rework the tryAlloc/tryReloc functions
authorIustin Pop <iustin@google.com>
Mon, 1 Jun 2009 13:48:44 +0000 (15:48 +0200)
committerIustin Pop <iustin@google.com>
Mon, 1 Jun 2009 13:48:44 +0000 (15:48 +0200)
commit9dcec0011685db5521ecdeb6ed8af93b4a93a3dd
tree3616faf404307aab20dd18934146f5653bdd8c60
parenta80bf544154b056030ce80d23700763f52c08845
Rework the tryAlloc/tryReloc functions

Currently tryAlloc/tryReloc do not return the new instance, as this is
not needed for IAllocator alloc/reloc requests. However, for computing
the space, the new instance is useful, so we modify these functions to
return this information too.

The patch also improves hspace to have (with default parameters) a
parseable output.
Ganeti/HTools/Cluster.hs
hail.hs
hspace.hs