diff options
author | Kevin Wolf <kwolf@redhat.com> | 2011-03-01 10:48:12 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-03-15 13:21:14 +0100 |
commit | e11480db7ff15a9e878f6b3cc1199b439bf7c825 (patch) | |
tree | 44e28826cadacae29974e44ce516b3cc60979ac5 /savevm.c | |
parent | 5614c188c65a8194ae499cb16400cab690a45299 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |