Patchwork [3/9] Add error message for loading snapshot without VM state

login
register
mail settings
Submitter Kevin Wolf
Date March 16, 2011, 10:47 a.m.
Message ID <1300272481-8744-4-git-send-email-kwolf@redhat.com>
Download mbox | patch
Permalink /patch/87223/
State New
Headers show

Comments

Kevin Wolf - March 16, 2011, 10:47 a.m.
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 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/savevm.c b/savevm.c
index 60d2f2a..d1b9b4a 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;
     }