qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH v2] Improve error handling in do_snapshot_blkdev


From: Stefan Hajnoczi
Subject: [Qemu-devel] Re: [PATCH v2] Improve error handling in do_snapshot_blkdev()
Date: Thu, 3 Mar 2011 13:18:48 +0000
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Mar 03, 2011 at 02:13:56PM +0100, address@hidden wrote:
> From: Jes Sorensen <address@hidden>
> 
> In case we cannot open the newly created snapshot image, try to fall
> back to the original image file and continue running on that, which
> should prevent the guest from aborting.
> 
> This is a corner case which can happen if the admin by mistake
> specifies the snapshot file on a virtual file system which does not
> support O_DIRECT. bdrv_create() does not use O_DIRECT, but the
> following open in bdrv_open() does and will then fail.
> 
> Signed-off-by: Jes Sorensen <address@hidden>
> ---
>  blockdev.c |   30 ++++++++++++++++++++++++------
>  1 files changed, 24 insertions(+), 6 deletions(-)

Looks good.

Stefan



reply via email to

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