|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 8 of 12] introduce XEN_LOCK_DIR
Introduce a OS dependent global variable XEN_LOCK_DIR that points at the
system directory that contains lock files.
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
diff -r 29dbbdc79759 Config.mk
--- a/Config.mk Fri Aug 27 14:17:58 2010 +0100
+++ b/Config.mk Fri Aug 27 14:23:13 2010 +0100
@@ -114,6 +114,7 @@ define buildmakevars2file-closure
echo "XENFIRMWAREDIR=\"$(XENFIRMWAREDIR)\"" >> $(1); \
echo "XEN_CONFIG_DIR=\"$(XEN_CONFIG_DIR)\"" >> $(1); \
echo "XEN_SCRIPT_DIR=\"$(XEN_SCRIPT_DIR)\"" >> $(1)
+ echo "XEN_LOCK_DIR=\"$(XEN_LOCK_DIR)\"" >> $(1)
endef
ifeq ($(debug),y)
diff -r 29dbbdc79759 config/NetBSD.mk
--- a/config/NetBSD.mk Fri Aug 27 14:17:58 2010 +0100
+++ b/config/NetBSD.mk Fri Aug 27 14:23:13 2010 +0100
@@ -7,4 +7,10 @@ LIBLEAFDIR_x86_64 = lib
LIBEXEC = $(PREFIX)/libexec
PRIVATE_BINDIR = $(BINDIR)
+ifeq ($(PREFIX),/usr)
+XEN_LOCK_DIR = /var/lib
+else
+XEN_LOCK_DIR = $(PREFIX)/var/lib
+endif
+
WGET = ftp
diff -r 29dbbdc79759 config/StdGNU.mk
--- a/config/StdGNU.mk Fri Aug 27 14:17:58 2010 +0100
+++ b/config/StdGNU.mk Fri Aug 27 14:23:13 2010 +0100
@@ -45,8 +45,10 @@ PRIVATE_BINDIR = $(PRIVATE_PREFIX)/bin
ifeq ($(PREFIX),/usr)
CONFIG_DIR = /etc
+XEN_LOCK_DIR = /var/lock
else
CONFIG_DIR = $(PREFIX)/etc
+XEN_LOCK_DIR = $(PREFIX)/var/lock
endif
SYSCONFIG_DIR = $(CONFIG_DIR)/sysconfig
diff -r 29dbbdc79759 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h Fri Aug 27 14:17:58 2010 +0100
+++ b/tools/libxl/libxl.h Fri Aug 27 14:23:13 2010 +0100
@@ -495,6 +495,7 @@ const char *libxl_private_bindir_path(vo
const char *libxl_xenfirmwaredir_path(void);
const char *libxl_xen_config_dir_path(void);
const char *libxl_xen_script_dir_path(void);
+const char *libxl_lock_dir_path(void);
#endif /* LIBXL_H */
diff -r 29dbbdc79759 tools/libxl/libxl_paths.c
--- a/tools/libxl/libxl_paths.c Fri Aug 27 14:17:58 2010 +0100
+++ b/tools/libxl/libxl_paths.c Fri Aug 27 14:23:13 2010 +0100
@@ -60,3 +60,7 @@ const char *libxl_xen_script_dir_path(vo
return XEN_SCRIPT_DIR;
}
+const char *libxl_lock_dir_path(void)
+{
+ return XEN_LOCK_DIR;
+}
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 0 of 12] v4: xl/libxl autoballooning, Stefano Stabellini
- [Xen-devel] [PATCH 1 of 12] libxl: add current_memkb to libxl_dominfo, stefano . stabellini
- [Xen-devel] [PATCH 2 of 12] libxl: do not modify static-max after domain creation, stefano . stabellini
- [Xen-devel] [PATCH 3 of 12] libxl: use transactions in libxl_set_memory_target, stefano . stabellini
- [Xen-devel] [PATCH 4 of 12] libxl: add a "relative" parameter to libxl_set_memory_target, stefano . stabellini
- [Xen-devel] [PATCH 5 of 12] libxl: adds few more memory operations, stefano . stabellini
- [Xen-devel] [PATCH 8 of 12] introduce XEN_LOCK_DIR,
stefano . stabellini <=
- [Xen-devel] [PATCH 6 of 12] libxl: introduce the concept of dom0 minimum memory, stefano . stabellini
- [Xen-devel] [PATCH 7 of 12] xl: add a global configuration file, stefano . stabellini
- [Xen-devel] [PATCH 9 of 12] xl: free memory before building a domain, stefano . stabellini
- [Xen-devel] [PATCH 11 of 12] xl: parse maxmem parameter in VM config files, stefano . stabellini
- [Xen-devel] [PATCH 10 of 12] libxl: proper accounting for the videoram, stefano . stabellini
- [Xen-devel] [PATCH 12 of 12] libxl: add a detailed explanation of the libxl domain memory model, stefano . stabellini
|
|
|
|
|