qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [RFC] qed: Add QEMU Enhanced Disk format


From: Avi Kivity
Subject: [Qemu-devel] Re: [RFC] qed: Add QEMU Enhanced Disk format
Date: Fri, 10 Sep 2010 13:53:56 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Thunderbird/3.1.2

 On 09/09/2010 08:02 PM, Anthony Liguori wrote:
On 09/09/2010 11:48 AM, Paolo Bonzini wrote:
On 09/09/2010 02:49 PM, Anthony Liguori wrote:
We should optimize for the future. That means a btrfs file system and/or
enterprise storage.

So we should just implement a copy-on-read wrapper that generates a sparse raw image and uses FIEMAP (or whatever it is called these days) to test for the presence of extents. Then you let btrfs handle everything else...

My position is that we'll need a sparse image format well into the future because while btrfs may be ubiquitous as a file system, IRL, people transfer images around all of the time through dumb transports like HTTP and fat-formatted USB keys. A 100GB image with 1GB allocated cannot explode to 100GB just because HTTP is a dump transport.


An 'Export' and 'Upload' buttons would do the job. For command line users, compressing the image will remove the unallocated extents, as will 'qemu-img convert -O qcow2'.

It's not as nice as having a sparse format, but on the other hand, performance and data integrity will be better, as well as the excellent snapshot support.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.




reply via email to

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