[libvirt PATCH v2 00/13] second part of cleanup storage source related code

Pavel Hrdina posted 13 patches 3 years, 2 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1611257578.git.phrdina@redhat.com
po/POTFILES.in                                |   11 +-
src/conf/backup_conf.c                        |    2 +-
src/conf/checkpoint_conf.c                    |    2 +-
src/conf/domain_conf.c                        |    2 +-
src/conf/domain_conf.h                        |    6 +-
src/conf/meson.build                          |    2 +
src/conf/snapshot_conf.c                      |    2 +-
src/conf/storage_conf.c                       |    2 +-
src/conf/storage_conf.h                       |    4 +-
.../storage_encryption_conf.c}                |    4 +-
.../storage_encryption_conf.h}                |    2 +-
src/conf/storage_source_conf.c                | 1350 +++++
src/conf/storage_source_conf.h                |  537 ++
src/esx/esx_storage_backend_iscsi.c           |    2 +-
src/esx/esx_storage_backend_vmfs.c            |    2 +-
src/libvirt_private.syms                      |  189 +-
src/libxl/meson.build                         |    1 +
src/libxl/xen_xl.c                            |    2 +-
src/locking/lock_driver_lockd.c               |    1 +
src/meson.build                               |    1 +
src/qemu/meson.build                          |    1 +
src/qemu/qemu_backup.c                        |   11 +-
src/qemu/qemu_block.c                         |   10 +-
src/qemu/qemu_blockjob.c                      |    2 +-
src/qemu/qemu_command.c                       |    2 +-
src/qemu/qemu_domain.c                        |   55 +-
src/qemu/qemu_driver.c                        |   69 +-
src/qemu/qemu_hotplug.c                       |    7 +-
src/qemu/qemu_migration.c                     |    2 +-
src/qemu/qemu_process.c                       |    5 +-
src/qemu/qemu_snapshot.c                      |   24 +-
src/security/meson.build                      |    1 +
src/security/virt-aa-helper.c                 |    3 +-
src/storage/meson.build                       |   34 +-
src/storage/storage_backend.c                 |    2 +-
src/storage/storage_backend_gluster.c         |    6 +-
src/storage/storage_util.c                    |    9 +-
src/storage_file/meson.build                  |   61 +
.../storage_file_backend.c}                   |    4 +-
.../storage_file_backend.h}                   |    6 +-
.../storage_file_fs.c                         |   23 +-
.../storage_file_fs.h                         |    0
.../storage_file_gluster.c                    |   34 +-
.../storage_file_gluster.h                    |    0
src/storage_file/storage_file_probe.c         |  967 ++++
src/storage_file/storage_file_probe.h         |   44 +
src/storage_file/storage_source.c             | 2614 +++++++++
src/storage_file/storage_source.h             |  148 +
src/util/meson.build                          |    2 -
src/util/virstoragefile.c                     | 4790 +----------------
src/util/virstoragefile.h                     |  554 +-
tests/meson.build                             |    4 +-
tests/qemublocktest.c                         |    1 +
tests/virstoragetest.c                        |   19 +-
54 files changed, 6045 insertions(+), 5593 deletions(-)
rename src/{util/virstorageencryption.c => conf/storage_encryption_conf.c} (99%)
rename src/{util/virstorageencryption.h => conf/storage_encryption_conf.h} (98%)
create mode 100644 src/conf/storage_source_conf.c
create mode 100644 src/conf/storage_source_conf.h
create mode 100644 src/storage_file/meson.build
rename src/{util/virstoragefilebackend.c => storage_file/storage_file_backend.c} (97%)
rename src/{util/virstoragefilebackend.h => storage_file/storage_file_backend.h} (93%)
rename src/{storage => storage_file}/storage_file_fs.c (90%)
rename src/{storage => storage_file}/storage_file_fs.h (100%)
rename src/{storage => storage_file}/storage_file_gluster.c (89%)
rename src/{storage => storage_file}/storage_file_gluster.h (100%)
create mode 100644 src/storage_file/storage_file_probe.c
create mode 100644 src/storage_file/storage_file_probe.h
create mode 100644 src/storage_file/storage_source.c
create mode 100644 src/storage_file/storage_source.h
[libvirt PATCH v2 00/13] second part of cleanup storage source related code
Posted by Pavel Hrdina 3 years, 2 months ago
Pavel Hrdina (13):
  src: add missing virstoragefile.h includes
  virstoragefile: properly include virstoragefile.h header
  virstoragefile: change virStorageSource->drv to void pointer
  storage: move storage file sources to separate directory
  util: move virStorageSourceFindByNodeName into qemu_domain
  util: extract storage file probe code into virtstoragefileprobe.c
  util: extract virStorageFile code into storage_source
  util: move virStorageFileBackend code into storage_file
  util: move virStorageFileProbe code into storage_file
  util: move virStorageSource code into conf
  util: move virStorageEncryption code into conf
  virstoragefile: use virStorageFile prefix for all functions
  storage_source: use virStorageSource prefix for all functions

 po/POTFILES.in                                |   11 +-
 src/conf/backup_conf.c                        |    2 +-
 src/conf/checkpoint_conf.c                    |    2 +-
 src/conf/domain_conf.c                        |    2 +-
 src/conf/domain_conf.h                        |    6 +-
 src/conf/meson.build                          |    2 +
 src/conf/snapshot_conf.c                      |    2 +-
 src/conf/storage_conf.c                       |    2 +-
 src/conf/storage_conf.h                       |    4 +-
 .../storage_encryption_conf.c}                |    4 +-
 .../storage_encryption_conf.h}                |    2 +-
 src/conf/storage_source_conf.c                | 1350 +++++
 src/conf/storage_source_conf.h                |  537 ++
 src/esx/esx_storage_backend_iscsi.c           |    2 +-
 src/esx/esx_storage_backend_vmfs.c            |    2 +-
 src/libvirt_private.syms                      |  189 +-
 src/libxl/meson.build                         |    1 +
 src/libxl/xen_xl.c                            |    2 +-
 src/locking/lock_driver_lockd.c               |    1 +
 src/meson.build                               |    1 +
 src/qemu/meson.build                          |    1 +
 src/qemu/qemu_backup.c                        |   11 +-
 src/qemu/qemu_block.c                         |   10 +-
 src/qemu/qemu_blockjob.c                      |    2 +-
 src/qemu/qemu_command.c                       |    2 +-
 src/qemu/qemu_domain.c                        |   55 +-
 src/qemu/qemu_driver.c                        |   69 +-
 src/qemu/qemu_hotplug.c                       |    7 +-
 src/qemu/qemu_migration.c                     |    2 +-
 src/qemu/qemu_process.c                       |    5 +-
 src/qemu/qemu_snapshot.c                      |   24 +-
 src/security/meson.build                      |    1 +
 src/security/virt-aa-helper.c                 |    3 +-
 src/storage/meson.build                       |   34 +-
 src/storage/storage_backend.c                 |    2 +-
 src/storage/storage_backend_gluster.c         |    6 +-
 src/storage/storage_util.c                    |    9 +-
 src/storage_file/meson.build                  |   61 +
 .../storage_file_backend.c}                   |    4 +-
 .../storage_file_backend.h}                   |    6 +-
 .../storage_file_fs.c                         |   23 +-
 .../storage_file_fs.h                         |    0
 .../storage_file_gluster.c                    |   34 +-
 .../storage_file_gluster.h                    |    0
 src/storage_file/storage_file_probe.c         |  967 ++++
 src/storage_file/storage_file_probe.h         |   44 +
 src/storage_file/storage_source.c             | 2614 +++++++++
 src/storage_file/storage_source.h             |  148 +
 src/util/meson.build                          |    2 -
 src/util/virstoragefile.c                     | 4790 +----------------
 src/util/virstoragefile.h                     |  554 +-
 tests/meson.build                             |    4 +-
 tests/qemublocktest.c                         |    1 +
 tests/virstoragetest.c                        |   19 +-
 54 files changed, 6045 insertions(+), 5593 deletions(-)
 rename src/{util/virstorageencryption.c => conf/storage_encryption_conf.c} (99%)
 rename src/{util/virstorageencryption.h => conf/storage_encryption_conf.h} (98%)
 create mode 100644 src/conf/storage_source_conf.c
 create mode 100644 src/conf/storage_source_conf.h
 create mode 100644 src/storage_file/meson.build
 rename src/{util/virstoragefilebackend.c => storage_file/storage_file_backend.c} (97%)
 rename src/{util/virstoragefilebackend.h => storage_file/storage_file_backend.h} (93%)
 rename src/{storage => storage_file}/storage_file_fs.c (90%)
 rename src/{storage => storage_file}/storage_file_fs.h (100%)
 rename src/{storage => storage_file}/storage_file_gluster.c (89%)
 rename src/{storage => storage_file}/storage_file_gluster.h (100%)
 create mode 100644 src/storage_file/storage_file_probe.c
 create mode 100644 src/storage_file/storage_file_probe.h
 create mode 100644 src/storage_file/storage_source.c
 create mode 100644 src/storage_file/storage_source.h

-- 
2.29.2