From bf94c0f5a05a00f42c6606b4987fbd8d0554f47a Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Tue, 8 Jul 2008 14:41:46 +0000
Subject: [PATCH] symlinks: Add DISK_LINKS_DIR constant

The DISK_LINKS_DIR points to the RUN_DIR/ganeti/instance-disks
directory, which will contain symlinks to the instances' disks. These
provide a stable name accross all nodes for them, and permit
live-migration to happen.

Unfortunately RUN_DIR/ganeti/instance-disks happens to be below ganeti
1.2's BDEV_CACHE_DIR, which will we need to address at some point
(possibly in 2.0).

Reviewed-by: iustinp
---
 lib/constants.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/constants.py b/lib/constants.py
index 0f9b0cc60..de8dd489f 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -81,6 +81,7 @@ CONFIG_VERSION = BuildVersion(CONFIG_MAJOR, CONFIG_MINOR, CONFIG_REVISION)
 DATA_DIR = _autoconf.LOCALSTATEDIR + "/lib/ganeti"
 RUN_DIR = _autoconf.LOCALSTATEDIR + "/run"
 BDEV_CACHE_DIR = RUN_DIR + "/ganeti"
+DISK_LINKS_DIR = RUN_DIR + "/ganeti/instance-disks"
 LOCK_DIR = _autoconf.LOCALSTATEDIR + "/lock"
 CLUSTER_CONF_FILE = DATA_DIR + "/config.data"
 SSL_CERT_FILE = DATA_DIR + "/server.pem"
-- 
GitLab