projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fff75d2
)
Add error message for loading snapshot without VM state
author
Kevin Wolf
<kwolf@redhat.com>
Tue, 1 Mar 2011 09:48:12 +0000
(10:48 +0100)
committer
Kevin Wolf
<kwolf@redhat.com>
Tue, 15 Mar 2011 12:21:14 +0000
(13:21 +0100)
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>
savevm.c
patch
|
blob
|
history
diff --git
a/savevm.c
b/savevm.c
index
60d2f2a
..
d1b9b4a
100644
(file)
--- 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;
}