aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_domain_restore.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-01-21 17:57:31 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-01-21 17:57:31 +0000
commit1b1d0b8b75864c6e26e7af5c95b90ecaeb37a9ff (patch)
tree0c47b7eda450575e04fc0cfdb8abe1da650e3a07 /tools/libxc/xc_domain_restore.c
parente1e6f0f906c72f646b0b1213d202c19356b41de1 (diff)
downloadxen-1b1d0b8b75864c6e26e7af5c95b90ecaeb37a9ff.tar.gz
xen-1b1d0b8b75864c6e26e7af5c95b90ecaeb37a9ff.tar.bz2
xen-1b1d0b8b75864c6e26e7af5c95b90ecaeb37a9ff.zip
tools: Change the name of the qemu save file at restore time
Change the name of the qemu save file to qemu-resume at restore time so that it doesn't collide with the name of the next save file. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_domain_restore.c')
-rw-r--r--tools/libxc/xc_domain_restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_domain_restore.c b/tools/libxc/xc_domain_restore.c
index d895710a7b..eb9eee3009 100644
--- a/tools/libxc/xc_domain_restore.c
+++ b/tools/libxc/xc_domain_restore.c
@@ -436,7 +436,7 @@ static int dump_qemu(xc_interface *xch, uint32_t dom, struct tailbuf_hvm *buf)
char path[256];
FILE *fp;
- sprintf(path, "/var/lib/xen/qemu-save.%u", dom);
+ sprintf(path, XC_DEVICE_MODEL_RESTORE_FILE".%u", dom);
fp = fopen(path, "wb");
if ( !fp )
return -1;