From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXz0s-0002B4-J1 for qemu-devel@nongnu.org; Fri, 13 Feb 2009 09:27:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXz0q-0002AP-Lm for qemu-devel@nongnu.org; Fri, 13 Feb 2009 09:27:30 -0500 Received: from [199.232.76.173] (port=53890 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXz0q-0002AJ-HA for qemu-devel@nongnu.org; Fri, 13 Feb 2009 09:27:28 -0500 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:39263) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXz0q-0001Sz-6v for qemu-devel@nongnu.org; Fri, 13 Feb 2009 09:27:28 -0500 Received: from caffeine.csclub.uwaterloo.ca (localhost [127.0.0.1]) by caffeine.csclub.uwaterloo.ca (Postfix) with ESMTP id B6D8E73CAC for ; Fri, 13 Feb 2009 09:27:24 -0500 (EST) Date: Fri, 13 Feb 2009 09:27:24 -0500 Subject: Re: [Qemu-devel] qemu-img Message-ID: <20090213142724.GK15807@csclub.uwaterloo.ca> References: <1234458957.3827.9.camel@TuxBox.mobab> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1234458957.3827.9.camel@TuxBox.mobab> From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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