Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwAma-0003Qm-9i for qemu-devel@nongnu.org; Mon, 29 Mar 2010 04:57:16 -0400 Received: from [140.186.70.92] (port=39547 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwAmY-0003Pd-7C for qemu-devel@nongnu.org; Mon, 29 Mar 2010 04:57:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwAmW-0007Km-Do for qemu-devel@nongnu.org; Mon, 29 Mar 2010 04:57:14 -0400 Received: from cantor.suse.de ([195.135.220.2]:54886 helo=mx1.suse.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwAmW-0007KS-4R for qemu-devel@nongnu.org; Mon, 29 Mar 2010 04:57:12 -0400 Subject: Re: [Qemu-devel] [PATCH] qemu-img: add FUSE-based image access Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <4BB05AD6.9060408@web.de> Date: Mon, 29 Mar 2010 10:57:07 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4BABA2FB.8050505@web.de> <20100328110248.GA9094@lst.de> <4BB05AD6.9060408@web.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Christoph Hellwig , qemu-devel On 29.03.2010, at 09:46, Jan Kiszka wrote: > Christoph Hellwig wrote: >> On Thu, Mar 25, 2010 at 06:52:59PM +0100, Jan Kiszka wrote: >>> This adds the "map" subcommand to qemu-img. It is able to expose the = raw >>> content of a disk image via a FUSE filesystem. Both the whole disk = can >>> be accessed, e.g. to run partitioning tools against it, as well as >>> individual partitions. This allows to create new filesystems in the >>> image or loop-back mount exiting ones. Using the great mountlo tool >>> from the FUSE collection [1][2], the latter can even be done by = non-root >>> users (the former anyway). >>=20 >> Is there a good reason to throw this into qemu-img instead of making >> a separate qemu-fuse or similar tool? It's doing something quite >> different than the rest of qemu-img. >>=20 >=20 > qemu-img is the swiss knife for QEMU disk image manipulation (like git > is for everything around a git repository). So, IHMO, mapping the = image > content into the host filesystem for further manipulation with = standard > tools belongs to this. >=20 > If the "map" thing works out for most users, I could even imagine some > helper sub-command "mount" that encapsulates map and mountlo (or some > other unprivileged mounting mechanism). This should make it easier for > users to explore all possibilities they have when working with disk = images. We also have a tool called "qemu-ext2" lying around that allows you to = explore ext2 based file system contents in any qemu block layer = supported backend. IMHO the best move to do here (Anthony's idea) is to somehow get the = full block layer into a library, move it out of qemu into a separate = project and allow other tools in there too. That move would vastly improve the situation of distributions too. I = don't want to have a qemu-img each coming from the Xen, KVM and Qemu = packages. One is enough :-). And it could enable block layer experienced = people to be the project maintainers, making that more valuable. Alex=