1. 07 5月, 2018 1 次提交
  2. 03 4月, 2018 1 次提交
    • P
      util: json: Fix freeing of objects appended to virJSONValue · ea520f6b
      Peter Krempa 提交于
      It was not possible to determine whether virJSONValueObjectAddVArgs and
      the functions using it would consume a virJSONValue or not when used
      with the 'a' or 'A' modifier depending on when the loop failed.
      
      Fix this by passing in a pointer to the pointer so that it can be
      cleared once it's successfully consumed and the callers don't have to
      second-guess leaving a chance of leaking or double freeing the value
      depending on the ordering.
      
      Fix all callers to pass a double pointer too.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      ea520f6b
  3. 14 12月, 2017 1 次提交
    • P
      conf: Add infrastructure for disk source private data XML · aed3d038
      Peter Krempa 提交于
      VM drivers may need to store additional private data to the status XML
      so that it can be restored after libvirtd restart. Since not everything
      is needed add a callback infrastructure, where VM drivers can add only
      stuff they need.
      
      Note that the private data is formatted as a <privateData> sub-element
      of the <disk> or <backingStore> <source> sub-element. This is done since
      storing it out of band (in the VM private data) would require a complex
      matching process to allow to put the data into correct place.
      aed3d038
  4. 07 11月, 2017 1 次提交