]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: Alter node device deletion logic
authorJohn Ferlan <jferlan@redhat.com>
Thu, 20 Jul 2017 13:07:52 +0000 (09:07 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 24 Jul 2017 16:19:34 +0000 (12:19 -0400)
commit5ba2ce658b3b213013dab461ba787150fd4d6080
tree593db28ef951203c7d133319e35fc18581119b17
parent4860582f672d9df13bd20e1557232cc493fe84b1
nodedev: Alter node device deletion logic

Alter the node device deletion logic to make use of the parent field
from the obj->def rather than call virNodeDeviceObjListGetParentHost.
As it turns out the saved @def won't have parent_wwnn/wwpn or
parent_fabric_wwn, so the only logical path would be to call
virNodeDeviceObjListGetParentHostByParent which we can accomplish
directly via virNodeDeviceObjListFindByName.
src/node_device/node_device_driver.c
src/test/test_driver.c