Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HiEVh-00052c-3c for qemu-devel@nongnu.org; Sun, 29 Apr 2007 14:52:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HiEVf-00050B-7x for qemu-devel@nongnu.org; Sun, 29 Apr 2007 14:52:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HiEVe-000508-Re for qemu-devel@nongnu.org; Sun, 29 Apr 2007 14:52:35 -0400 Received: from the.musical-geek.de ([217.160.22.94]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HiEPY-0004n7-4W for qemu-devel@nongnu.org; Sun, 29 Apr 2007 14:46:16 -0400 Message-ID: <20070429204611.o2fyuyny84gs4o0c@webmail.yousable.de> Date: Sun, 29 Apr 2007 20:46:11 +0200 From: Friedrich Schwittay MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_7dj1wlf14sw8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Magic Numbers for Qemu Images Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: christos@astron.com Cc: qemu-devel@nongnu.org This message is in MIME format. --=_7dj1wlf14sw8 Content-Type: multipart/signed; boundary="=_795eh9k4wi88"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit This message is in MIME format and has been PGP signed. --=_795eh9k4wi88 Content-Type: multipart/alternative; boundary="=_6n5rrm8rqxog" Content-Transfer-Encoding: 7bit This message is in MIME format. --=_6n5rrm8rqxog Content-Type: text/plain; charset=UTF-8 Content-Description: Textversion der Nachricht Content-Disposition: inline Content-Transfer-Encoding: quoted-printable /* CC=C2=B4d to qemu-devel@nongnu.org: Just to have it available to Qemu-Devs who will acually have real use for it */Hi Christos,i recently added some lines to my magic file and since there might be a hole bunch of people out there pointing file(1) on qemu images it would be nice, if you include them into available file(1) releases.I would appreciate if you keep my name in there, thx.######## And here they are:############ #-------------------------------------------------------------------- # Qemu Emulator Images # Lines written by Friedrich Schwittay (f.schwittay@yousable.de) # Made by reading sources and doing trial and error on existing # qcow files 0 string QFI Qemu Image, Format: Qcow# Uncomment the following line to display Magic (only used for debugging # this magic number) #>0 string x , Magic: %s# There are currently 2 Versions: "1" and "2" # I do not use Version 2 and therefor branch here # but can assure: it works (tested on both versions) # Also my Qemu 0.9.0 which uses this Version 2 refuses # to start in its bios >0x04 belong 2 , Version: 2 >0x04 belong 1 , Version: 1# Using the existence of the Backing File Offset to Branch or not # to read Backing File Information >>0xc belong >0 , Backing File( Offset: %d >>>(0xc.L) string >\0 , Path: %s# Didnt got the Trick here how qemu stores the "Size" at this Position # There is actually something stored but nothing makes sense # The header in the sources talks about it #>>>16 lelong x , Size: %d# Modification time of the Backing File # Really usefull if you want to know if your backing # file is still usable together with this image >>>20 bedate x , Mtime: %s )# Dont know how to calculate in Magicfiles # Also: this Information is not reliably # stored in image-files >>24 lelong x , Disk Size could be: %d * 256 bytes ####### End of Qemu-Lines #############I will make some more if there is Interest in it For me it just makes it possible to check where i have to put the corresponding Backing File when the location has changed because tool "qemu-img info" refuses to show this information if the backing file is not in the right position.Best Wishes Friedrich Schwittay --=_6n5rrm8rqxog Content-Type: text/html; charset=UTF-8 Content-Description: HTML-Version der Nachricht Content-Disposition: inline Content-Transfer-Encoding: quoted-printable /* CC=C2=B4d to qemu-devel@nongnu.org: Just to have it available to Qemu-Devs who will acually have real use for it */ Hi Christos, i recently added some lines to my magic file and since there might be a hole bunch of people out there pointing file(1) on qemu images it would be nice, if you include them into available file(1) releases. I would appreciate if you keep my name in there, thx. ######## And here they are:############ #-------------------------------------------------------------------- # Qemu Emulator Images # Lines written by Friedrich Schwittay (f.schwittay@yousable.de) # Made by reading sources and doing trial and error on existing # qcow files 0 string QFI Qemu Image, Format: Qcow # Uncomment the following line to display Magic (only used for debugging # this magic number) #>0 string x , Magic: %s # There are currently 2 Versions: "1" and "2" # I do not use Version 2 and therefor branch here # but can assure: it works (tested on both versions) # Also my Qemu 0.9.0 which uses this Version 2 refuses # to start in its bios >0x04 belong 2 , Version: 2 >0x04 belong 1 , Version: 1 # Using the existence of the Backing File Offset to Branch or not # to read Backing File Information >>0xc belong >0 , Backing File( Offset: %d >>>(0xc.L) string >\0 , Path: %s # Didnt got the Trick here how qemu stores the "Size" at this Pos= ition # There is actually something stored but nothing makes sense # The header in the sources talks about it #>>>16 lelong x , Size: %d # Modification time of the Backing File # Really usefull if you want to know if your backing # file is still usable together with this image >>>20 bedate x , Mtime: %s ) # Dont know how to calculate in Magicfiles # Also: this Information is not reliably # stored in image-files >>24 lelong x , Disk Size could be: %d * 256 bytes ####### End of Qemu-Lines ############# I will make some more if there is Interest in it For me it just makes it possible to check where i have to put the corresponding Backing File when the location has changed because tool "qemu-img info" refuses to show this information if the backing file is not in the right position. Best Wishes Friedrich Schwittay --=_6n5rrm8rqxog-- --=_795eh9k4wi88 Content-Type: application/pgp-signature Content-Description: Digitale PGP-Unterschrift Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBGNOfz9E6gn5nY5tMRAuKPAJ0WpsJeiLK0mx+S3zcIwOrrUeYl8QCfXUQW E/s8BSXHp0Et7BD0rnAF6nQ= =Y1Al -----END PGP SIGNATURE----- --=_795eh9k4wi88-- --=_7dj1wlf14sw8 Content-Type: application/pgp-keys Content-Description: =?us-ascii?b?w5ZmZmVudGxpY2hlciA=?= =?us-ascii?b?UEdQLVNjaGzDvHNzZWw=?= Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.0 (GNU/Linux) mQGiBEYrZQgRBACF+LXLAYc7ctA3/43WZmWWcWVCQz+4tymm1gcfTshb4hRUNLRM Z9Ern/lO0SC/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