aboutsummaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2011-03-01 10:48:12 +0100
committerKevin Wolf <kwolf@redhat.com>2011-03-15 13:21:14 +0100
commite11480db7ff15a9e878f6b3cc1199b439bf7c825 (patch)
tree44e28826cadacae29974e44ce516b3cc60979ac5 /savevm.c
parent5614c188c65a8194ae499cb16400cab690a45299 (diff)
Add error message for loading snapshot without VM state
It already fails, but it didn't tell the user why. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'savevm.c')
-rw-r--r--savevm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/savevm.c b/savevm.c
index 60d2f2a547..d1b9b4a413 100644
--- a/savevm.c
+++ b/savevm.c
@@ -2021,6 +2021,8 @@ int load_vmstate(const char *name)
if (ret < 0) {
return ret;
} else if (sn.vm_state_size == 0) {
+ error_report("This is a disk-only snapshot. Revert to it offline "
+ "using qemu-img.");
return -EINVAL;
}