Skip to content
Snippets Groups Projects
  1. Oct 15, 2009
  2. Oct 14, 2009
  3. Oct 12, 2009
  4. Oct 08, 2009
  5. Oct 02, 2009
  6. Sep 30, 2009
    • Iustin Pop's avatar
      Change ExtLoader to only handle I/O errors · 1cf97474
      Iustin Pop authored
      Due to the Control.Exception changes between 6.8 and 6.10, using it
      portably is difficult. Since we're only interested in handling I/O
      errors, we can use prelude's catch and not have to deal with
      Control.Exception at all.
      
      The use in Luxi.hs where we just use bracket is fine across the two
      versions, so we keep that.
      1cf97474
  7. Sep 29, 2009
  8. Sep 28, 2009
    • Iustin Pop's avatar
      Turn on, and fix, more warnings · fbb95f28
      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).
      fbb95f28
    • Iustin Pop's avatar
      Brown bag fix: invert a test · 685f5bc6
      Iustin Pop authored
      During testing I used the test inversely to see it triggers correctly,
      and committed by mistake the inverted test. Fixing it.
      685f5bc6
    • Iustin Pop's avatar
      Add support for building without curl · 45ab6a8d
      Iustin Pop authored
      Since curl is not always needed (e.g. when only using luxi or less
      likely file backends only) and is also not always available, it is
      useful for building without it. This of course disabled the RAPI
      backend.
      
      This patch changes ExtLoader to build with the ‘-cpp’ option which makes
      ghc run it through cpp first; and based on whether ‘NO_CURL’ is defined
      or not, this toggles RAPI/curl inclusion. The patch also removes the
      import of Rapi in QC.hs since it's not actually used in tests.
      
      Invoking make as ‘make HEXTRA=-DNO_CURL’ is enough to trigger the new
      build mode.
      45ab6a8d
    • Iustin Pop's avatar
      Split the exernal data loader out of CLI.hs · e8f89bb6
      Iustin Pop authored
      Currently the external data loader is in CLI.hs, which makes all
      programs that need cli functionality (options, etc.) link against the
      network modules (most importantly curl). This patch splits this
      functionality into a new module such that (for example) hail which only
      deals with file I/O doesn't link against these libraries.
      e8f89bb6
  9. Sep 02, 2009
  10. Aug 31, 2009
  11. Aug 30, 2009
    • Iustin Pop's avatar
      Split the balancing algorithm in two parts · f25e5aac
      Iustin Pop authored
      Currently the computation, recursing part and the IO part (progress
      updates) of the balancing main function (iterateDepth) are all in the
      same function, which makes it hard to test. This patch moves the
      decision/computation part (whether to proceed one more round, whether we
      got a good result, etc.) into Cluster.hs, and leaves only the iteration
      and screen update in hbal.hs.
      f25e5aac
  12. Aug 26, 2009
    • Iustin Pop's avatar
      Implement support for 'cheap' moves only · c0501c69
      Iustin Pop authored
      This patch adds support for cheap (failover/migrate) operations only in
      the balancing algorithm and in the hbal command line options.
      
      This allows a very quick balancing (compared to allowing replace-disks)
      which can be useful as a scheduled operation.
      c0501c69
    • Iustin Pop's avatar
      Simplify the wrapIO function · 633e6bcb
      Iustin Pop authored
      This fixes one warning from hlint.
      633e6bcb
Loading