]> git.proxmox.com Git - mirror_qemu.git/commit
block/vvfat: inherit child_vvfat_qcow from child_of_bds
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 1 Jun 2021 07:52:16 +0000 (10:52 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 2 Jun 2021 12:23:20 +0000 (14:23 +0200)
commit8081f064e404dd524b3c43248b2084dee9d32d7c
treecad5ec6bc06c0b34bd28d86ab48fd18a4c90c1c3
parent2c0a3acb9570a9e1ffae3c73ef94bc826dc9dd1d
block/vvfat: inherit child_vvfat_qcow from child_of_bds

Recently we've fixed a crash by adding .get_parent_aio_context handler
to child_vvfat_qcow. Now we want it to support .get_parent_desc as
well. child_vvfat_qcow wants to implement own .inherit_options, it's
not bad. But omitting all other handlers is a bad idea. Let's inherit
the class from child_of_bds instead, similar to chain_child_class and
detach_by_driver_cb_class in test-bdrv-drain.c.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20210601075218.79249-5-vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c