qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Add error message for loading snapshot without VM s


From: Kevin Wolf
Subject: [Qemu-devel] [PATCH] Add error message for loading snapshot without VM state
Date: Tue, 1 Mar 2011 10:49:42 +0100

It already fails, but it didn't tell the user why.

Signed-off-by: Kevin Wolf <address@hidden>
---
 savevm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/savevm.c b/savevm.c
index a50fd31..6e026a8 100644
--- a/savevm.c
+++ b/savevm.c
@@ -1996,6 +1996,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;
     }
 
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]