parallels: Check maximum cluster size on create
authorKevin Wolf <kwolf@redhat.com>
Tue, 20 Mar 2018 16:07:58 +0000 (17:07 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Mar 2018 10:17:43 +0000 (12:17 +0200)
commit2332d82589ef9e9f7e065ec1f759a2c164ad4932
treed2fb14f4a462cccac8fea81a86d4949a193982b0
parent50880f25c88f2a629bd68a5fb1a46aa9bf0a2543
parallels: Check maximum cluster size on create

It's unclear what the real maximum cluster size is for the Parallels
format, but let's at least make sure that we don't get integer
overflows in our .bdrv_co_create implementation.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/parallels.c