- 28 Sep, 2009 1 commit
-
-
Iustin Pop authored
The Makefile was intented to be -Wall and not simply -W, but I missed that. This enables more warnings and also enables -Werror (except for the tests).
-
- 06 Jul, 2009 2 commits
-
-
Iustin Pop authored
This patch optimizes the stdDev function in two respects: - first, we don't do sum . map which builds an intermediate list, but instead use a fold over the list to build incrementally the sum; this should reduce both the time and space characteristics, as we have fewer objects created - second, we move from “a ^ 2” to “a * a” as the latter has a much simpler implementation and thus a higher performance Since the ‘square’ function is obsoleted by the above the patch also removes it.
-
Iustin Pop authored
This big patch cleans up the code per hlint indications. Many removals of extra parentheses, replacements of concat . map with concabtMap, extra dollar signs, eta reductions, etc. were performed. The code still compiles and passes a couple of manual tests on sample files. The individual changes are also small enough as to be visually easy to confirm.
-
- 11 Jun, 2009 2 commits
-
-
Iustin Pop authored
This removes some unused functions and imports to cleanup the warnings.
-
Iustin Pop authored
In a few places (e.g. tryRead or any printf call) it's a little bit hard to add the correct type signatures, but in the it is possible to fix these warnings (which can bite one in subtle cases).
-
- 01 Jun, 2009 4 commits
-
-
Iustin Pop authored
-
Iustin Pop authored
This doc-patch adds copyright and license information to (hopefully) all needed files.
-
Iustin Pop authored
Also replace a type with its synonim.
-
Iustin Pop authored
This patch does only doc build changes, doc changes and function move around (for more logical documentation). It should have no impact at all on the code.
-
- 22 May, 2009 1 commit
-
-
Iustin Pop authored
This new big patch does a couple of more cleanups in the loading of data chapter: - introduce a Types module that holds most types (except the base Node/Instance/etc.) so that multiple other modules can use these (instead of only Cluster and its users) - bring IAlloc.hs in line with the recent changes of providing data types and not strings - removal of obsolete Utils.hs json-related functions
-
- 21 May, 2009 1 commit
-
-
Iustin Pop authored
This makes hail compile and get a request parsed via IAlloc, but nothing more.
-
- 20 May, 2009 2 commits
-
-
Iustin Pop authored
We don't really needed, but is more clean like this.
-
Iustin Pop authored
This big patch converts from our home-grown monad-like constructs (the Either stuff) to a real, Either-like-but-another-name monad. We introduce a “Result a” monad, and this allows dropping many of the extra constructs. Hopefully the code is also more clear. Many of the functions could now be written in a generic-monad style, instead of Result specifically, but that will come in future patches. IAlloc.hs also has some unrelated patches.
-
- 19 May, 2009 1 commit
-
-
Iustin Pop authored
This patch drops compatiblity with Ganeti 1.2 and adds support for offline nodes in the cluster. When reading from RAPI, the drained nodes are considered offline so that we don't allocate on them too.
-
- 18 May, 2009 2 commits
-
-
Iustin Pop authored
We know have a working parseData function that returns the node and instance data. This uncovered bad support for non-drbd instances
☹ -
Iustin Pop authored
This patch moves the generic/reusable JSON functions to Utils.hs, so that they're shared between RAPI/IAlloc.
-
- 16 Apr, 2009 1 commit
-
-
Iustin Pop authored
Since it's easy to pass a wrong node name as offline, we should abort instead of silently ignoring it.
-
- 22 Mar, 2009 1 commit
-
-
Iustin Pop authored
This patch moves the common CLI functionality (as much as currently possible) into a separate module. This means we only have one parseOpts and that Utils.hs doesn't keep this kind of functions anymore.
-
- 20 Mar, 2009 1 commit
-
-
Iustin Pop authored
The modules are moved from the ‘top’ namespace to ‘Ganeti.HTools’, in compliance with standard practices.
-
- 14 Mar, 2009 1 commit
-
-
Iustin Pop authored
This patch moves the version string creation into a function in Utils which shows some more information.
-
- 14 Feb, 2009 1 commit
-
-
Iustin Pop authored
This patch moves a function to Utils and changes hn1 to be able to take data from RAPI.
-
- 13 Feb, 2009 1 commit
-
-
Iustin Pop authored
-
- 28 Jan, 2009 1 commit
-
-
Iustin Pop authored
This is the initial import of release 0.0.3.
-