Skip to content

Commit d0ddc8e

Browse files
committed
guestfs: Set storage options consistently
Clean up: The set-up for guestfs extra storage options is done differently for each of the three libvirt storage choices. Ensure that all three set the global variables consistently. Reviewed-by: Luis Chamberlain <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent ce97bdd commit d0ddc8e

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

kconfigs/Kconfig.libvirt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ choice
528528

529529
config LIBVIRT_EXTRA_STORAGE_DRIVE_NVME
530530
bool "NVMe"
531+
output yaml
531532
help
532533
Use the QEMU NVMe driver for extra storage drives. We always expect
533534
to use this as we expect *could* be outperforming the virtio driver.
@@ -537,6 +538,7 @@ config LIBVIRT_EXTRA_STORAGE_DRIVE_NVME
537538

538539
config LIBVIRT_EXTRA_STORAGE_DRIVE_VIRTIO
539540
bool "virtio"
541+
output yaml
540542
help
541543
Use the QEMU virtio driver for extra storage drives. Use this if you
542544
are having issues with "NVMe timeouts" issues when testing in a loop
@@ -545,6 +547,7 @@ config LIBVIRT_EXTRA_STORAGE_DRIVE_VIRTIO
545547

546548
config LIBVIRT_EXTRA_STORAGE_DRIVE_IDE
547549
bool "ide"
550+
output yaml
548551
help
549552
Use the QEMU ide driver for extra storage drives. This is useful for
550553
really old Linux distributions that lack the virtio backend driver.

playbooks/roles/gen_nodes/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ libvirt_enable_cxl_demo_topo2: False
6464
libvirt_enable_cxl_switch_topo1: False
6565
libvirt_enable_cxl_dcd_topo1: False
6666
libvirt_extra_drive_id_prefix: 'drv'
67-
libvirt_extra_storage_drive_nvme: True
67+
libvirt_extra_storage_drive_nvme: False
6868
libvirt_extra_storage_drive_virtio: False
6969
libvirt_extra_storage_drive_ide: False
7070
libvirt_extra_storage_aio_mode: "native"

scripts/gen-nodes.Makefile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ GEN_NODES_EXTRA_ARGS += libvirt_storage_pool_name='$(subst ",,$(CONFIG_LIBVIRT_S
4848
GEN_NODES_EXTRA_ARGS += libvirt_storage_pool_path='$(subst ",,$(CONFIG_KDEVOPS_STORAGE_POOL_PATH))'
4949
endif
5050

51-
ifeq (y,$(CONFIG_LIBVIRT_EXTRA_STORAGE_DRIVE_IDE))
52-
GEN_NODES_EXTRA_ARGS += libvirt_extra_storage_drive_nvme='False'
53-
GEN_NODES_EXTRA_ARGS += libvirt_extra_storage_drive_ide='True'
54-
endif
55-
56-
ifeq (y,$(CONFIG_LIBVIRT_EXTRA_STORAGE_DRIVE_VIRTIO))
57-
GEN_NODES_EXTRA_ARGS += libvirt_extra_storage_drive_nvme='False'
58-
GEN_NODES_EXTRA_ARGS += libvirt_extra_storage_drive_virtio='True'
59-
endif
60-
6151
GEN_NODES_EXTRA_ARGS += libvirt_extra_storage_aio_mode='$(subst ",,$(CONFIG_LIBVIRT_AIO_MODE))'
6252
GEN_NODES_EXTRA_ARGS += libvirt_extra_storage_aio_cache_mode='$(subst ",,$(CONFIG_LIBVIRT_AIO_CACHE_MODE))'
6353

0 commit comments

Comments
 (0)