]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildDriveStr: Refactor formatting of command line for 'sd' cards
authorPeter Krempa <pkrempa@redhat.com>
Mon, 4 May 2020 17:32:37 +0000 (19:32 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 May 2020 04:54:59 +0000 (06:54 +0200)
commit7824bb8548b3bdc3931252c055e83edae115be88
tree69fb0c05b6a9a4b282b2a9529c6b1f34bd711086
parent10f5ad9b5883f63bbeb06ee61fb8ca3c1a37e60f
qemuBuildDriveStr: Refactor formatting of command line for 'sd' cards

Remove all the universal code since the 'else' part formats commandline
only for the SD card based disk. Note that we can use virDiskNameToIndex
without the check as we already validate that 'disk->dst' contains a
properly formatted string in the validation code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c