echo "CONFD_GROUP = '$(CONFD_GROUP)'"; \
echo "NODED_USER = '$(NODED_USER)'"; \
echo "VCS_VERSION = '$$VCSVER'"; \
+ echo "DISK_SEPARATOR = '$(DISK_SEPARATOR)'"; \
} > $@
$(REPLACE_VARS_SED): Makefile
fi
AC_SUBST(SYSLOG_USAGE, $SYSLOG)
+# --with-disk-separator=...
+AC_ARG_WITH([disk-separator],
+ [AS_HELP_STRING([--with-disk-separator=STRING],
+ [Disk index separator, useful if the default of ':' is handled specially by the hypervisor]
+ )],
+ [disk_separator="$withval"],
+ [disk_separator=":"])
+AC_SUBST(DISK_SEPARATOR, $disk_separator)
+
# Check common programs
AC_PROG_INSTALL
AC_PROG_LN_S
def _GetBlockDevSymlinkPath(instance_name, idx):
- return utils.PathJoin(constants.DISK_LINKS_DIR,
- "%s:%d" % (instance_name, idx))
+ return utils.PathJoin(constants.DISK_LINKS_DIR, "%s%s%d" %
+ (instance_name, constants.DISK_SEPARATOR, idx))
def _SymlinkBlockDev(instance_name, device_path, idx):
NODE_MAX_CLOCK_SKEW = 150
# Time for an intra-cluster disk transfer to wait for a connection
DISK_TRANSFER_CONNECT_TIMEOUT = 30
+# Disk index separator
+DISK_SEPARATOR = _autoconf.DISK_SEPARATOR
# runparts results
(RUNPARTS_SKIP,