Rework the caching mechanism
authorIustin Pop <iustin@google.com>
Sun, 6 Jul 2008 17:30:01 +0000 (17:30 +0000)
committerIustin Pop <iustin@google.com>
Sun, 6 Jul 2008 17:30:01 +0000 (17:30 +0000)
commitfbf8a4ab2b8e8a631d76abf6274f2bdb1bc9a138
tree04b26db49f20ef33fbd8f5690f824f8d3519df23
parentef66c3c811635c899b1ce5ee44b3c075f853692a
Rework the caching mechanism

Following the introduction of ./configure options and the configuration
files, this patch simplifies the caching settings:
  - the generation of the cache is done in the settings file, via
    GENERATE_CACHE (if set to "yes" it will enable the creation)
  - the cleaning of the cache is done also in the settings file, via the
    CLEAN_CACHE variable; set to empty it will disable the cache,
    otherwise it's interpreted as the number of days to keep the cache

The location of the cache has also been moved from the current dir to
under localstatedir, which is more FHS compliant (patch taken from the
debian package); this means with localstatedir=/var, the location of the
cache will be /var/cache/ganeti-instance-debootstrap.

Reviewed-by: imsnah
Makefile.am
NEWS
create.in
defaults