From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILin3-0001fY-2q for qemu-devel@nongnu.org; Thu, 16 Aug 2007 13:05:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILin1-0001dN-MI for qemu-devel@nongnu.org; Thu, 16 Aug 2007 13:05:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILin1-0001dD-Fa for qemu-devel@nongnu.org; Thu, 16 Aug 2007 13:05:43 -0400 Received: from eastrmmtao107.cox.net ([68.230.240.59]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILin0-0008IS-VT for qemu-devel@nongnu.org; Thu, 16 Aug 2007 13:05:43 -0400 Message-ID: <21867471.1187283941478.JavaMail.root@eastrmwml26.mgt.cox.net> Date: Thu, 16 Aug 2007 13:05:41 -0400 From: Ben Taylor Subject: Re: [Qemu-devel] Making qemu images executable (and store command line arguments in them =P) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Reply-To: sol10x86@cox.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org Cc: =?utf-8?Q?Jorge_Luc=C3=A1ngeli_Obes?= ---- "Jorge Luc=C3=A1ngeli Obes" wrote:=20 > I've been giving some thought to Anthony's idea: >=20 > http://kvm.qumranet.com/kvmwiki/Specs/StoringCommandLineInImage >=20 > However, maybe I'm just too much on vacations, but I don't seem to > come up with a nice way of doing this. Everything keeps coming back to > creating a new 'container' image format and then implementing block > layer functions that only add the number of sectors occupied by the > command-line to the read and write calls made by QEMU, and then just > relay those calls to the image-specific functions. That doesn't sound > very efficient. No, and it fundamentally breaks using a real disk with QEMU. > The '#!' trick works nice with scripts, but I don't see it playing > very well with images. =C2=BFComments? =C2=BFPointers? Personally, I'm not sure why we wouldn't just write out the command line data to a file tied to the primary image file, with some kind of time stamp to correlate the data from the command line and the last updated time of the primary image file. It's intuitive, and doesn't require a bucket of programming to make work. The down side is if qemu crashes, the time stamp between the parameter file and the image file may indicate the potential for "difference", but this can just be a notice (just as snap= shots used to do with the image files in 0.7.x) The only hard part here is when a real physical disk is used with QEMU since it's harder to make sure the name is valid. Thoughts? Ben