]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Factor out function to find node device
authorJonathon Jongsma <jjongsma@redhat.com>
Mon, 17 Aug 2020 21:21:48 +0000 (16:21 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Wed, 7 Apr 2021 20:14:01 +0000 (15:14 -0500)
commit732a5eecbc26b417d856a28003332726c818eebf
treeadce51205b06bc296e42b88ce33b29f74dbfb578
parentbb311cede795213f02938f68aaa5504548eccafd
virsh: Factor out function to find node device

Several functions accept providing a node device by name or by wwnn,wwpn
pair. Extract the logic to do this into a function that can be used by
both callers.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tools/virsh-nodedev.c