]> git.proxmox.com Git - mirror_qemu.git/commit - block/vmdk.c
block: Move initialisation of BlockLimits to bdrv_refresh_limits()
authorKevin Wolf <kwolf@redhat.com>
Wed, 11 Dec 2013 18:26:16 +0000 (19:26 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jan 2014 16:40:01 +0000 (17:40 +0100)
commitd34682cd4a06efe9ee3fc8cb7e8a0ea445299989
treeff1e3ffdb4f56ff7e2c3d86542a711d731622c4b
parentdabfa6cc2e2a06269026fcb42772894f67bd0c3e
block: Move initialisation of BlockLimits to bdrv_refresh_limits()

This function separates filling the BlockLimits from bdrv_open(), which
allows it to call it from other operations which may change the limits
(e.g. modifications to the backing file chain or bdrv_reopen)

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
block.c
block/iscsi.c
block/qcow2.c
block/qed.c
block/vmdk.c
include/block/block_int.h