[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] Add error message for loading snapshot without
From: |
Juan Quintela |
Subject: |
[Qemu-devel] Re: [PATCH] Add error message for loading snapshot without VM state |
Date: |
Tue, 01 Mar 2011 11:19:16 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Kevin Wolf <address@hidden> wrote:
> 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;
> }
Reviewed-by: Juan Quintela <address@hidden>