[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: rename libxl_dom:save_helper to physmap_path
# HG changeset patch # User Ian Jackson <ian.jackson@xxxxxxxxxxxxx> # Date 1340905402 -3600 # Node ID d1fe6b6aa97a36c4b52bf78af34a0256ed0d321b # Parent 0f1a974bfb38ba55555a4a86a1ccd568aa7be56b libxl: rename libxl_dom:save_helper to physmap_path "save_helper" isn't very descriptive. Also it is now confusing because it reads like it might refer to the libxl-save-helper executable which runs xc_domain_save and xc_domain_restore. Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Committed-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- diff -r 0f1a974bfb38 -r d1fe6b6aa97a tools/libxl/libxl_dom.c --- a/tools/libxl/libxl_dom.c Thu Jun 28 18:43:21 2012 +0100 +++ b/tools/libxl/libxl_dom.c Thu Jun 28 18:43:22 2012 +0100 @@ -736,7 +736,7 @@ int libxl__domain_suspend_common_callbac return 1; } -static inline char *save_helper(libxl__gc *gc, uint32_t domid, +static inline char *physmap_path(libxl__gc *gc, uint32_t domid, char *phys_offset, char *node) { return libxl__sprintf(gc, @@ -781,21 +781,21 @@ int libxl__toolstack_save(uint32_t domid return -1; } - xs_path = save_helper(gc, domid, phys_offset, "start_addr"); + xs_path = physmap_path(gc, domid, phys_offset, "start_addr"); start_addr = libxl__xs_read(gc, 0, xs_path); if (start_addr == NULL) { LOG(ERROR, "%s is NULL", xs_path); return -1; } - xs_path = save_helper(gc, domid, phys_offset, "size"); + xs_path = physmap_path(gc, domid, phys_offset, "size"); size = libxl__xs_read(gc, 0, xs_path); if (size == NULL) { LOG(ERROR, "%s is NULL", xs_path); return -1; } - xs_path = save_helper(gc, domid, phys_offset, "name"); + xs_path = physmap_path(gc, domid, phys_offset, "name"); name = libxl__xs_read(gc, 0, xs_path); if (name == NULL) namelen = 0; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |