From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nw9gJ-0007ek-AK for qemu-devel@nongnu.org; Mon, 29 Mar 2010 03:46:43 -0400 Received: from [140.186.70.92] (port=56142 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nw9gG-0007eF-3M for qemu-devel@nongnu.org; Mon, 29 Mar 2010 03:46:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nw9gE-0003dp-HZ for qemu-devel@nongnu.org; Mon, 29 Mar 2010 03:46:39 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:57625) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nw9gE-0003db-6z for qemu-devel@nongnu.org; Mon, 29 Mar 2010 03:46:38 -0400 Message-ID: <4BB05AD6.9060408@web.de> Date: Mon, 29 Mar 2010 09:46:30 +0200 From: Jan Kiszka MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] qemu-img: add FUSE-based image access References: <4BABA2FB.8050505@web.de> <20100328110248.GA9094@lst.de> In-Reply-To: <20100328110248.GA9094@lst.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFDC15CC0D7AF9DC4CCF29ABD" Sender: jan.kiszka@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Hellwig Cc: qemu-devel This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFDC15CC0D7AF9DC4CCF29ABD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 r= aw >> 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-ro= ot >> 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 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. 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 image= s. Jan --------------enigFDC15CC0D7AF9DC4CCF29ABD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkuwWtoACgkQitSsb3rl5xRGqACeOE4WfKfrHaa7ST/ugnLitbmj /1EAn30GavsabtxwlkZWC6KmEievhXNP =wVNB -----END PGP SIGNATURE----- --------------enigFDC15CC0D7AF9DC4CCF29ABD--