diff options
author | Max Reitz <mreitz@redhat.com> | 2020-05-13 13:05:12 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2020-05-18 19:05:25 +0200 |
commit | d67066d8bc01a14f7c9d9b9aeeffb30a10f0e900 (patch) | |
tree | 0af8c1dbef89694d6103e874dbf23449c017849a /block/vhdx.c | |
parent | 6540fd153ca9d4cff31b1cc3f5ced271eca9296c (diff) | |
download | qemu-d67066d8bc01a14f7c9d9b9aeeffb30a10f0e900.zip qemu-d67066d8bc01a14f7c9d9b9aeeffb30a10f0e900.tar.gz qemu-d67066d8bc01a14f7c9d9b9aeeffb30a10f0e900.tar.bz2 |
block: Add BlockDriver.is_format
We want to unify child_format and child_file at some point. One of the
important things that set format drivers apart from other drivers is
that they do not expect other format nodes under them (except in the
backing chain), i.e. we must not probe formats inside of formats. That
means we need something on which to distinguish format drivers from
others, and hence this flag.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-Id: <20200513110544.176672-3-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/vhdx.c')
-rw-r--r-- | block/vhdx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/vhdx.c b/block/vhdx.c index 53e7564..e692cf8 100644 --- a/block/vhdx.c +++ b/block/vhdx.c @@ -2254,6 +2254,7 @@ static BlockDriver bdrv_vhdx = { .bdrv_co_check = vhdx_co_check, .bdrv_has_zero_init = vhdx_has_zero_init, + .is_format = true, .create_opts = &vhdx_create_opts, }; |