qcow2: insert assert into qcow2_get_specific_info()
authorDenis V. Lunev <den@openvz.org>
Thu, 10 Dec 2015 09:55:48 +0000 (12:55 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 18 Dec 2015 13:34:43 +0000 (14:34 +0100)
commitb1fc8f934ba3fcdc8381b89413ad4df2e90d5312
treef6d503f2a2f9621e79b702ab307a7547c2abbf12
parente9dbdc5e46054c4660b4c4f705ce8ff6aeb4959b
qcow2: insert assert into qcow2_get_specific_info()

s->qcow_version is always set to 2 or 3. Let's assert if this is wrong.

Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Roman Kagan <rkagan@virtuozzo.com>
CC: Max Reitz <mreitz@redhat.com>
CC: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c