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 <address@hidden>
---
block.c | 19 +++++++++++++++++++
block/iscsi.c | 46 +++++++++++++++++++++++++++++-----------------
block/qcow2.c | 11 ++++++++++-
block/qed.c | 11 ++++++++++-
block/vmdk.c | 22 ++++++++++++++++++----
include/block/block_int.h | 2 ++
6 files changed, 88 insertions(+), 23 deletions(-)