]> git.proxmox.com Git - qemu.git/commit - block/vmdk.c
vmdk: Only read cid from image file when opening
authorFam Zheng <famz@redhat.com>
Fri, 18 Oct 2013 05:17:19 +0000 (13:17 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 18 Oct 2013 11:39:59 +0000 (13:39 +0200)
commitc338b6ad609699cf352c8dd6338360b7e3895ad0
treef19139d75eb97730a936accdb1b04f7020f0bba4
parentb432779a9fe9c2a1bb8cbd98feb341af6e32f892
vmdk: Only read cid from image file when opening

Previously cid of parent is parsed from image file for every IO request.
We already have L1/L2 cache and don't have assumption that parent image
can be updated behind us, so remove this to get more efficiency.

The parent CID is checked only for once after opening.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vmdk.c