linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PARCH 0/1 RFC] e2image: Add support for QCOW2 image format
@ 2010-12-01 17:41 Lukas Czerner
  2010-12-01 17:41 ` [PATCH] e2image: Add support for qcow2 format Lukas Czerner
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Lukas Czerner @ 2010-12-01 17:41 UTC (permalink / raw)
  To: tytso; +Cc: adilger, sandeen, lczerner, linux-ext4

Hi, all

As Ted suggested on LPC I started to play with e2image to add support for
exporting images in QCOW2 format (http://en.wikipedia.org/wiki/Qcow2). The
advantage of this format is mainly that the resulting image is quite small
(because we write only the metadata blocks) and it is not sparse unlike
"sparse" image format.

I am presenting you an initial parch, which works for me quite nicely, however
so far it did received just limited testing. Nevertheless you can try it simply
by invoking e2image with '-q' parameter like this:

	e2image -q /dev/sda1 myimage

or you can add '-s' option so the file names are scrambled. To mount that qcow2
image I usually use 'qemu-nbd':

	modprobe nbd max_part=8
	qemu-nbd --connect=/dev/nbd0 myimage
	mount -o ro /dev/nbd0 /mnt/test/

However I have experienced some problems with qemu-nbd from time to time. Also
for some reason, when you mount the image read-write, you'll destroy it. So far
I was not able to figure out why (I did not tried at all to be honest), it may
be problem in my image format or even in qemu itself, so if you have any idea,
please let me know.

QCOW2 format supports other neat features like compression, encryption and
snapshots. None of those feature are supported in this patch and the question
is, do we need it ? I can imagine for example snapshots to be useful for
roll-back changes made by e2fsck, but this is hardly problem of e2image itself.

So, please look at the patch, try it and let me know what else you thing is
useful to implement, or what would you like to change.

Anny comments appreciated.

Thanks!

-Lukas

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-12-06 10:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-01 17:41 [PARCH 0/1 RFC] e2image: Add support for QCOW2 image format Lukas Czerner
2010-12-01 17:41 ` [PATCH] e2image: Add support for qcow2 format Lukas Czerner
2010-12-01 19:16 ` [PARCH 0/1 RFC] e2image: Add support for QCOW2 image format Amir Goldstein
2010-12-02  8:23   ` Lukas Czerner
2010-12-02 10:03     ` Amir Goldstein
2010-12-02 10:23       ` Lukas Czerner
2010-12-02 10:56         ` Amir Goldstein
2010-12-02 11:11           ` Lukas Czerner
2010-12-02 12:23             ` Amir Goldstein
2010-12-04  7:37               ` Amir Goldstein
2010-12-06 10:27                 ` Lukas Czerner
2010-12-01 22:52 ` Andreas Dilger
2010-12-02  8:24   ` Lukas Czerner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).