]> git.proxmox.com Git - mirror_qemu.git/commit
block/parallels: implement parallels_check method of block driver
authorDenis V. Lunev <den@openvz.org>
Tue, 28 Apr 2015 07:46:52 +0000 (10:46 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 22 May 2015 08:37:32 +0000 (09:37 +0100)
commit49ad6467313d17486af9029413debb709dc971a8
tree42b04b6a772e6bc072b06c63f18407da35ebfa0f
parent23d6bd3bd1225e8c8ade6ed829eabcf90ddfa6f7
block/parallels: implement parallels_check method of block driver

The check is very simple at the moment. It calculates necessary stats
and fix only the following errors:
- space leak at the end of the image. This would happens due to
  preallocation
- clusters outside the image are zeroed. Nothing else could be done here

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Roman Kagan <rkagan@parallels.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Roman Kagan <rkagan@parallels.com>
Message-id: 1430207220-24458-20-git-send-email-den@openvz.org
CC: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/parallels.c