From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45225 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou7ga-0001Y3-Fn for qemu-devel@nongnu.org; Fri, 10 Sep 2010 13:46:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou7gY-0000V7-V7 for qemu-devel@nongnu.org; Fri, 10 Sep 2010 13:46:52 -0400 Received: from mail-ew0-f45.google.com ([209.85.215.45]:64193) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou7gY-0000Ul-Q3 for qemu-devel@nongnu.org; Fri, 10 Sep 2010 13:46:50 -0400 Received: by ewy27 with SMTP id 27so2114746ewy.4 for ; Fri, 10 Sep 2010 10:46:49 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4C8A666A.3080608@codemonkey.ws> References: <4C86BC6B.5010809@codemonkey.ws> <4C874812.9090807@redhat.com> <4C87860A.3060904@codemonkey.ws> <4C888287.8020209@redhat.com> <4C88D7CC.5000806@codemonkey.ws> <4C8A1311.8070903@redhat.com> <4C8A15C4.40201@redhat.com> <4C8A19CA.3040000@redhat.com> <4C8A3106.8050501@codemonkey.ws> <20100910134859.GB28831@lst.de> <4C8A488B.2090907@codemonkey.ws> <4C8A4C61.2030905@redhat.com> <4C8A5488.9000409@codemonkey.ws> <4C8A575E.7080505@redhat.com> <4C8A666A.3080608@codemonkey.ws> Date: Fri, 10 Sep 2010 14:46:49 -0300 Message-ID: Subject: Re: [Qemu-devel] [RFC] qed: Add QEMU Enhanced Disk format From: Miguel Di Ciurcio Filho Content-Type: text/plain; charset=ISO-8859-1 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Kevin Wolf , Stefan Hajnoczi , Stefan Hajnoczi , qemu-devel@nongnu.org, Avi Kivity , Christoph Hellwig On Fri, Sep 10, 2010 at 2:10 PM, Anthony Liguori wrote: >> >> Well, snapshots have an ID today (which is different from their name). >> Nobody stops you from putting a UUID there. Fully backwards compatible, >> no feature flag needed. I think Miguel was planning to actually do this. >> > > The problem is that management tools have to make a decision about what to > do with ID's that aren't UUIDs which means that in our management interface, > we can't just expose UUIDs but instead we have to expose strings that may > sometimes be UUIDs. > > I don't think it buys us a lot to get the backwards compatibility. > My main idea is to do not expose any ID/UUID information to the user, at least by default. Snapshots must have a name to be presented to the user, if he/she does not provide one we create it [1]. As you said, the ID field in qcow2 is just a string, so if we put an UUID there, no harm is done. The problem was to store parent information. qcow2 has an extra_data area that can store anything, so I used that space. This feature is an old wish from libvirt guys. I could not follow all the details discussed about qed so far, but would something like this work? Regards, Miguel [1] commit 7d631a116ad8fe07001e2cc4c559a06aac82745f