block/parallels: read parallels image header and BAT into single buffer
commit9eae9cca95e76afc2f2288a665e08a64953f2820
authorDenis V. Lunev <den@openvz.org>
Tue, 28 Apr 2015 07:46:50 +0000 (28 10:46 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 22 May 2015 08:37:32 +0000 (22 09:37 +0100)
tree71559af242f249ccaf6d58073c61ff9db47ac65c
parentdd97cdc064f24484a2ebc141a4ec6bba35f56007
block/parallels: read parallels image header and BAT into single buffer

This metadata cache would allow to properly batch BAT updates to disk
in next patches. These updates will be properly aligned to avoid
read-modify-write transactions on block level.

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-18-git-send-email-den@openvz.org
CC: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/parallels.c