From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7ROp-0001ey-BY for qemu-devel@nongnu.org; Mon, 09 Nov 2009 05:23:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7ROj-0001dA-Oh for qemu-devel@nongnu.org; Mon, 09 Nov 2009 05:23:02 -0500 Received: from [199.232.76.173] (port=58800 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7ROj-0001d7-K8 for qemu-devel@nongnu.org; Mon, 09 Nov 2009 05:22:57 -0500 Received: from mail-pw0-f43.google.com ([209.85.160.43]:45376) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7ROj-0003mu-5d for qemu-devel@nongnu.org; Mon, 09 Nov 2009 05:22:57 -0500 Received: by pwi18 with SMTP id 18so1997407pwi.2 for ; Mon, 09 Nov 2009 02:22:56 -0800 (PST) MIME-Version: 1.0 Date: Mon, 9 Nov 2009 15:52:55 +0530 Message-ID: From: Furquan Shaikh Content-Type: multipart/alternative; boundary=000e0cd2e0a6b5b45d0477ed93ec Subject: [Qemu-devel] Doubt about COW feature of QCOW2 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --000e0cd2e0a6b5b45d0477ed93ec Content-Type: text/plain; charset=ISO-8859-1 Hello All, I had a doubt about the COW implementation of QCOW2. Suppose two clusters point to the same address, then in that case, the QCOW_OFLAG_COPIED is cleared in the l2 entries for both the clusters. Now suppose a write is made to any one of the clusters, then how is the other cluster identified, in order to set the QCOW_OFLAG_COPIED since only reference is left. Thanks in advance, Furquan --000e0cd2e0a6b5b45d0477ed93ec Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello All,
I had a doubt about the COW implementation of QCOW2.

S= uppose two clusters point to the same address, then in that case, the QCOW_= OFLAG_COPIED is cleared in the l2 entries for both the clusters.
Now su= ppose a write is made to any one of the clusters, then how is the other clu= ster identified, in order to set the QCOW_OFLAG_COPIED since only reference= is left.

Thanks in advance,
Furquan
--000e0cd2e0a6b5b45d0477ed93ec--