1. 25 7月, 2017 3 次提交
    • J
      nodedev: Convert virNodeDeviceObjListPtr to use hash tables · 4ae9dbea
      John Ferlan 提交于
      Rather than use a forward linked list of elements, it'll be much more
      efficient to use a hash table to reference the elements by unique name
      and to perform hash searches.
      
      This patch does all the heavy lifting of converting the list object to
      use a self locking list that contains the hash table. Each of the FindBy
      functions that do not involve finding the object by it's key (name) is
      converted to use virHashSearch in order to find the specific object.
      When searching for the key (name), it's possible to use virHashLookup.
      For any of the list perusal functions that are required to evaluate
      each object, the virHashForEach function is used.
      4ae9dbea
    • J
      nodedev: Remove @create from virNodeDeviceObjListGetParentHost · 8f6679d9
      John Ferlan 提交于
      The only callers to this function are from CreateXML paths now, so
      let's just remove the unnecessary parameter.
      8f6679d9
    • J
      nodedev: Alter node device deletion logic · 5ba2ce65
      John Ferlan 提交于
      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.
      5ba2ce65
  2. 24 7月, 2017 13 次提交
  3. 22 7月, 2017 14 次提交
  4. 21 7月, 2017 8 次提交
  5. 20 7月, 2017 2 次提交