1. 26 7月, 2019 4 次提交
  2. 25 7月, 2019 1 次提交
    • E
      snapshot: Don't leak moment obj list metaroot to callers · ceb10192
      Eric Blake 提交于
      virDomainSnapshotFindByName(list, NULL) should return NULL, rather
      than the internal-use-only metaroot.  Most existing callers pass in a
      non-NULL name; the few external callers that don't are immediately
      calling virDomainMomentSetParent (which indeed needs the metaroot
      rather than NULL if the parent name is NULL); but as the leaky
      abstraction is ugly, it is worth instead making
      virDomainMomentSetParent static and adding a new function for
      resolving the parent link of a brand new moment within its list.  The
      existing external uses of virDomainMomentSetParent always succeed
      (either the new moment has parent_name of NULL to become a new root,
      or has parent_name set to a strdup of the previous current moment);
      hence, our new function does not need a return value (but it still has
      a VIR_WARN in case future uses break our assumptions about failure
      being impossible).
      
      Missed when commit 02c4e24d refactored things to attempt to remove
      direct metaroot manipulations out of the qemu and test drivers into
      internal-only details, and made more obvious when commit dc8d3dc6
      factored it out into a separate file.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      ceb10192
  3. 18 7月, 2019 5 次提交
  4. 16 7月, 2019 1 次提交
  5. 12 7月, 2019 4 次提交
  6. 11 7月, 2019 2 次提交
  7. 09 7月, 2019 1 次提交
  8. 03 7月, 2019 2 次提交
  9. 26 6月, 2019 1 次提交
  10. 20 6月, 2019 5 次提交
  11. 17 6月, 2019 6 次提交
  12. 04 6月, 2019 2 次提交
  13. 03 6月, 2019 1 次提交
  14. 09 5月, 2019 2 次提交
  15. 18 4月, 2019 1 次提交
  16. 17 4月, 2019 2 次提交