qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Can qemu reopen image files?


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] Can qemu reopen image files?
Date: Mon, 19 Dec 2016 13:55:29 +0000
User-agent: Mutt/1.7.1 (2016-10-04)

On Mon, Dec 19, 2016 at 09:07:43AM +0800, Fam Zheng wrote:
> On Sun, 12/18 20:52, Christopher Pereira wrote:
> > Hi,
> > 
> > We are doing a "qemu-img convert" operation (qcow2, with compression) to
> > shorten the backing-chain (in the middle of the backing-chain).
> > In order to force qemu to reopen files, we do a save and restore operation.
> > Is there a faster way to reopen image files using virsh or qemu?
> 
> No, don't use qemu-img when the image is in use by QEMU. You want to use
> "block-commit" command provided by QMP.

It's worth being more explicit here:

You will corrupt the image file if you access it with another program
while QEMU is using it!

Stefan

Attachment: signature.asc
Description: PGP signature


reply via email to

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