Make ganeti-noded create BDEV_CACHE_DIR automatically
authorIustin Pop <iustin@google.com>
Wed, 19 Mar 2008 10:14:41 +0000 (10:14 +0000)
committerIustin Pop <iustin@google.com>
Wed, 19 Mar 2008 10:14:41 +0000 (10:14 +0000)
commit8918a4af93857efd8680c93034ed8059bdc8852c
tree2feb10f8a758e112541e9c0f56191dec3cd9c81d
parent06f9bca44758fd00252918d1d1fdc5d27a50411d
Make ganeti-noded create BDEV_CACHE_DIR automatically

Currently in order to deal with tmpfs /var/run, we create the
BDEV_CACHE_DIR in the init script. However, that does not cover all the
cases, and it's not a proper place to deal with it: for example, dealing
with not initialized clusters and the master node is more complicated.

Therefore, this patch does:
  - make ganeti-noded create the directory automatically
  - make ganeti-noded error out if it can't create it or it's already
    there but not a directory
  - remove the creation from the init.d script

Reviewed-by: ultrotter
daemons/ganeti-noded
doc/examples/ganeti.initd.in