mirror of https://github.com/xqemu/xqemu.git
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>
This commit is contained in:
parent
5614c188c6
commit
e11480db7f
2
savevm.c
2
savevm.c
|
@ -2021,6 +2021,8 @@ int load_vmstate(const char *name)
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
return ret;
|
return ret;
|
||||||
} else if (sn.vm_state_size == 0) {
|
} else if (sn.vm_state_size == 0) {
|
||||||
|
error_report("This is a disk-only snapshot. Revert to it offline "
|
||||||
|
"using qemu-img.");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue