[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] qemu-img
From: |
Lennart Sorensen |
Subject: |
Re: [Qemu-devel] qemu-img |
Date: |
Fri, 13 Feb 2009 09:27:24 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Thu, Feb 12, 2009 at 06:15:57PM +0100, D. Schreiber wrote:
> is it possible to add "pipe"-Mode like this?
>
> dd if=/dev/sda | qemu-img convert -f raw - -O qcow2 newImage.img
Does this work:
dd if=/dev/sda | qemu-img convert -f raw <(dd if=/dev/sda) -O qcow2 newImage.img
> I know i can read directly from device, but in some cases (i.e. get data
> from netcat) it would be nice to convert from stdin. Alternative: read
> from fifo.
>
> Another wish is to mount an compressed qcow-Image as loop-Device.
I suspect you have to write a loop device handler for the kernel to
support that. Sounds perfectly doable.
--
Len Sorensen