1. 12 2月, 2019 6 次提交
  2. 04 2月, 2019 1 次提交
  3. 30 1月, 2019 2 次提交
  4. 28 1月, 2019 1 次提交
    • M
      lib: Use more of VIR_STEAL_PTR() · 5772885d
      Michal Privoznik 提交于
      We have this very handy macro called VIR_STEAL_PTR() which steals
      one pointer into the other and sets the other to NULL. The
      following coccinelle patch was used to create this commit:
      
        @ rule1 @
        identifier a, b;
        @@
      
        - b = a;
          ...
        - a = NULL;
        + VIR_STEAL_PTR(b, a);
      
      Some places were clean up afterwards to make syntax-check happy
      (e.g. some curly braces were removed where the body become a one
      liner).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      5772885d
  5. 14 12月, 2018 1 次提交
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  6. 20 9月, 2018 2 次提交
  7. 08 8月, 2018 1 次提交
  8. 06 8月, 2018 1 次提交
  9. 08 3月, 2018 2 次提交
  10. 20 2月, 2018 1 次提交
  11. 17 10月, 2017 2 次提交
    • P
      util: storagefile: Add helpers to check presence of backing store · 0a294a8e
      Peter Krempa 提交于
      Add helpers that will simplify checking if a backing file is valid or
      whether it has backing store. The helper virStorageSourceIsBacking
      returns true if the given virStorageSource is a valid backing store
      member. virStorageSourceHasBacking returns true if the virStorageSource
      has a backing store child.
      
      Adding these functions creates a central points for further refactors.
      0a294a8e
    • P
      storage: Fill in 'type' field for virStorageSource in storage driver · ee4d2df8
      Peter Krempa 提交于
      Storage driver uses virStorageSource only partially to store it's
      configuration but fully when parsing backing files of storage volumes.
      This patch sets the 'type' field to a value other than
      VIR_STORAGE_TYPE_NONE so that further patches can add a terminator
      element to backing chains without breaking iteration.
      ee4d2df8
  12. 14 8月, 2017 1 次提交
  13. 11 4月, 2017 1 次提交
  14. 29 3月, 2017 1 次提交
  15. 28 3月, 2017 3 次提交
  16. 27 3月, 2017 1 次提交
  17. 18 3月, 2017 2 次提交
  18. 16 3月, 2017 8 次提交
  19. 13 3月, 2017 1 次提交
  20. 21 2月, 2017 1 次提交
    • J
      conf: Cleanup matchFCHostToSCSIHost · 0a6cb28b
      John Ferlan 提交于
      Rather than the inlined VIR_FREE's, use a cleanup: label... Fixes an
      issue introduced by 03346def where @name was free'd before usage in
      a virAsprintf to format scsi_host_name.
      0a6cb28b
  21. 19 2月, 2017 1 次提交
    • J
      util: Move scsi_host specific functions from virutil · 03346def
      John Ferlan 提交于
      Create a virscsihost.c and place the functions there. That removes the
      last #ifdef __linux__ from virutil.c.
      
      Take the opporunity to also change the function names and in one case
      the parameters slightly
      03346def