[PATCH 02/17] virStorageSourceGetActualType: Change type of retval

Boris Fiuczynski fiuczy at linux.ibm.com
Tue May 24 11:50:13 UTC 2022


On 5/23/22 3:08 PM, Michal Privoznik wrote:
> The virStorageSourceGetActualType() function returns either
> virStorageSource->type (which is of type virStorageType), or
> virStorageSourcePoolDef->type, which really stores a value of the
> same enum. Thus, the latter struct can be changed so that the
> virStorageSourceGetActualType() function can return correct type
> instead of generic int.
> 
> Signed-off-by: Michal Privoznik<mprivozn at redhat.com>
> ---
>   src/conf/storage_source_conf.c    |  2 +-
>   src/conf/storage_source_conf.h    |  4 ++--
>   src/libxl/libxl_conf.c            |  2 +-
>   src/libxl/libxl_domain.c          |  2 +-
>   src/libxl/xen_xl.c                |  4 ++--
>   src/locking/domain_lock.c         |  2 +-
>   src/qemu/qemu_block.c             | 12 ++++++------
>   src/qemu/qemu_command.c           |  8 ++++----
>   src/qemu/qemu_domain.c            |  4 ++--
>   src/qemu/qemu_driver.c            |  2 +-
>   src/qemu/qemu_migration.c         |  4 ++--
>   src/qemu/qemu_snapshot.c          | 16 ++++++++--------
>   src/storage_file/storage_source.c |  4 ++--
>   13 files changed, 33 insertions(+), 33 deletions(-)

Reviewed-by: Boris Fiuczynski <fiuczy at linux.ibm.com>

-- 
Mit freundlichen Grüßen/Kind regards
    Boris Fiuczynski

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Gregor Pillen
Geschäftsführung: David Faller
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294



More information about the libvir-list mailing list