]> xenbits.xensource.com Git - libvirt.git/commit
nodedev: add function to generate mdevctl define command
authorJonathon Jongsma <jjongsma@redhat.com>
Wed, 27 Jan 2021 16:55:07 +0000 (10:55 -0600)
committerJonathon Jongsma <jjongsma@redhat.com>
Wed, 7 Apr 2021 20:08:59 +0000 (15:08 -0500)
commita48a2abe601d3efbd97de4215ffa2d44ddf071c6
treeff6031505ebc47d3930f4a765d46590cec71f8a0
parent2c57b28191b93c48eeac4185dde46cc7bc70a370
nodedev: add function to generate mdevctl define command

Abstract out the function used to generate the commandline for 'mdevctl
start' since they take the same arguments. Add tests to ensure that
we're generating the command properly.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/node_device/node_device_driver.c
src/node_device/node_device_driver.h
tests/nodedevmdevctldata/mdev_d069d019_36ea_4111_8f0a_8c9a70e21366-define.argv [new file with mode: 0644]
tests/nodedevmdevctldata/mdev_d069d019_36ea_4111_8f0a_8c9a70e21366-define.json [new file with mode: 0644]
tests/nodedevmdevctldata/mdev_d2441d39_495e_4243_ad9f_beb3f14c23d9-define.argv [new file with mode: 0644]
tests/nodedevmdevctldata/mdev_d2441d39_495e_4243_ad9f_beb3f14c23d9-define.json [new file with mode: 0644]
tests/nodedevmdevctldata/mdev_fedc4916_1ca8_49ac_b176_871d16c13076-define.argv [new file with mode: 0644]
tests/nodedevmdevctldata/mdev_fedc4916_1ca8_49ac_b176_871d16c13076-define.json [new file with mode: 0644]
tests/nodedevmdevctltest.c