|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 20 of 24] xenpaging: add XEN_PAGING_DIR / libxl_xenpa
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1317653620 -7200
# Node ID 916749c1775b4435629c747afa4b38c8cbb7dd5b
# Parent f9b5da9bcffdd96dcae4a26ead0b9c26507711e4
xenpaging: add XEN_PAGING_DIR / libxl_xenpaging_dir_path()
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
diff -r f9b5da9bcffd -r 916749c1775b Config.mk
--- a/Config.mk
+++ b/Config.mk
@@ -138,7 +138,7 @@ define buildmakevars2file-closure
$(foreach var, \
SBINDIR BINDIR LIBEXEC LIBDIR SHAREDIR PRIVATE_BINDIR \
XENFIRMWAREDIR XEN_CONFIG_DIR XEN_SCRIPT_DIR XEN_LOCK_DIR \
- XEN_RUN_DIR, \
+ XEN_RUN_DIR XEN_PAGING_DIR, \
echo "$(var)=\"$($(var))\"" >>$(1).tmp;) \
$(call move-if-changed,$(1).tmp,$(1))
endef
diff -r f9b5da9bcffd -r 916749c1775b config/StdGNU.mk
--- a/config/StdGNU.mk
+++ b/config/StdGNU.mk
@@ -53,10 +53,12 @@ ifeq ($(PREFIX),/usr)
CONFIG_DIR = /etc
XEN_LOCK_DIR = /var/lock
XEN_RUN_DIR = /var/run/xen
+XEN_PAGING_DIR = /var/lib/xen/xenpaging
else
CONFIG_DIR = $(PREFIX)/etc
XEN_LOCK_DIR = $(PREFIX)/var/lock
XEN_RUN_DIR = $(PREFIX)/var/run/xen
+XEN_PAGING_DIR = $(PREFIX)/var/lib/xen/xenpaging
endif
SYSCONFIG_DIR = $(CONFIG_DIR)/$(CONFIG_LEAF_DIR)
diff -r f9b5da9bcffd -r 916749c1775b tools/libxl/libxl.h
--- a/tools/libxl/libxl.h
+++ b/tools/libxl/libxl.h
@@ -538,6 +538,7 @@ const char *libxl_xen_config_dir_path(vo
const char *libxl_xen_script_dir_path(void);
const char *libxl_lock_dir_path(void);
const char *libxl_run_dir_path(void);
+const char *libxl_xenpaging_dir_path(void);
#endif /* LIBXL_H */
diff -r f9b5da9bcffd -r 916749c1775b tools/libxl/libxl_paths.c
--- a/tools/libxl/libxl_paths.c
+++ b/tools/libxl/libxl_paths.c
@@ -69,3 +69,8 @@ const char *libxl_run_dir_path(void)
{
return XEN_RUN_DIR;
}
+
+const char *libxl_xenpaging_dir_path(void)
+{
+ return XEN_PAGING_DIR;
+}
diff -r f9b5da9bcffd -r 916749c1775b tools/xenpaging/Makefile
--- a/tools/xenpaging/Makefile
+++ b/tools/xenpaging/Makefile
@@ -23,7 +23,7 @@ xenpaging: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
install: all
- $(INSTALL_DIR) $(DESTDIR)/var/lib/xen/xenpaging
+ $(INSTALL_DIR) $(DESTDIR)$(XEN_PAGING_DIR)
$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC)
$(INSTALL_PROG) $(IBINS) $(DESTDIR)$(LIBEXEC)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 24 of 24] xenpaging: libxl support, (continued)
- [Xen-devel] [PATCH 24 of 24] xenpaging: libxl support, Olaf Hering
- [Xen-devel] [PATCH 18 of 24] libxl: use libxl__spawn_confirm_offspring_startup for device model, Olaf Hering
- [Xen-devel] [PATCH 03 of 24] xenpaging: use PERROR to print errno, Olaf Hering
- [Xen-devel] [PATCH 01 of 24] xenpaging: remove filename from comment, Olaf Hering
- [Xen-devel] [PATCH 07 of 24] xenpaging: move page add/resume loops into its own function, Olaf Hering
- [Xen-devel] [PATCH 23 of 24] xenpaging: add cmdline interface for pager, Olaf Hering
- [Xen-devel] [PATCH 15 of 24] libxl: add libxl__wait_for_offspring function, Olaf Hering
- [Xen-devel] [PATCH 05 of 24] xenpaging: remove xc_dominfo_t from paging_t, Olaf Hering
- [Xen-devel] [PATCH 20 of 24] xenpaging: add XEN_PAGING_DIR / libxl_xenpaging_dir_path(),
Olaf Hering <=
- [Xen-devel] [PATCH 04 of 24] xenpaging: update xenpaging_init, Olaf Hering
- [Xen-devel] [PATCH 02 of 24] xenpaging: remove obsolete comment in resume path, Olaf Hering
- [Xen-devel] [PATCH 08 of 24] xenpaging: compare both token and path when checking for @releaseDomain event, Olaf Hering
- [Xen-devel] [PATCH 14 of 24] libxl: add pid path to libxl__spawner_starting, Olaf Hering
- [Xen-devel] [PATCH 13 of 24] libxl: rename dm_xenstore_record_pid to libxl_spawner_record_pid, Olaf Hering
- [Xen-devel] [PATCH 12 of 24] libxl: rename libxl__device_model_starting, Olaf Hering
- [Xen-devel] [PATCH 06 of 24] xenpaging: track the number of paged-out pages, Olaf Hering
- [Xen-devel] [PATCH 19 of 24] xenpaging: install into LIBEXEC dir, Olaf Hering
|
|
|
|
|