Received: from eggs.gnu.org ([2001:4830:134:3::10]:50197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP8K6-00064i-Fe for qemu-devel@nongnu.org; Wed, 03 Sep 2014 07:02:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XP8Jt-0007sD-RM for qemu-devel@nongnu.org; Wed, 03 Sep 2014 07:01:58 -0400 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:62723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP8Jt-0007s9-Kt for qemu-devel@nongnu.org; Wed, 03 Sep 2014 07:01:45 -0400 Received: by mail-wi0-f175.google.com with SMTP id ho1so657982wib.8 for ; Wed, 03 Sep 2014 04:01:44 -0700 (PDT) Date: Wed, 3 Sep 2014 12:01:42 +0100 From: Stefan Hajnoczi Message-ID: <20140903110142.GI28095@stefanha-thinkpad.redhat.com> References: <762e3797.5ddd.14839d70084.Coremail.shhuiw@163.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k9xkV0rc9XGsukaG" Content-Disposition: inline In-Reply-To: <762e3797.5ddd.14839d70084.Coremail.shhuiw@163.com> Subject: Re: [Qemu-devel] Fw:Re:What does "COW" mean? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: shhuiw Cc: qemu-devel@nongnu.org --k9xkV0rc9XGsukaG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 03, 2014 at 12:47:44PM +0800, shhuiw wrote: > At 2014-09-02 04:33:50, "shhuiw" wrote: > > > > > >Hi, > > > >I'm new to qemu community, and I'm trying the COW image format (old but = simple:-). > >I have read through its source code, and didn't find anything about 'cop= y on write'. > >I wonder wthat "COW" stands for? >=20 > Sorry for my unclear expression. > I mean when copy-on-write happens if COW image format is used, and how th= e COW driver code handles cop-on-write? It doesn't really "copy on write" but it is a sparse overlay. Only written sectors need to be allocated in the image file, other sectors will be read from the backing file. Stefan --k9xkV0rc9XGsukaG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUBvUWAAoJEJykq7OBq3PIxlEH/3qm7hNlOwmT6l0rJRrr6rAU TUY/s95BzSQHB+32b4kvDqRkoSWSxfF5J4GWs2GiZOJq9ukuFbh3b02UkBxEQjiC y7ro8l8tWsISBYjpDILNtMtslwMdpkrx9SsUzGBPKrIsfpVmfA3uEQMukzqU01fo cY9V3kWDuIpeu/y9vn04daNVFXFPFmR48JgyXBdtPc3McIuzr2YPjpThx3zxsshB 6jZrvUfMzEhCinpwN53Mb9IDvrp7DH+BOK3HhH4ylDqR/96/S7fACyXJ9kjs2htD s/uX64Gufkv9IPrcdLS2jHXm82PsiTYSSABfkuC3lJyunZa/VlKVzelzzxNcDKA= =BEG1 -----END PGP SIGNATURE----- --k9xkV0rc9XGsukaG--