1. 01 2月, 2019 1 次提交
  2. 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
  3. 04 12月, 2018 1 次提交
  4. 03 12月, 2018 1 次提交
  5. 20 11月, 2018 1 次提交
  6. 02 10月, 2018 1 次提交
  7. 24 9月, 2018 1 次提交
  8. 20 9月, 2018 2 次提交
  9. 17 9月, 2018 2 次提交
  10. 14 9月, 2018 1 次提交
  11. 13 9月, 2018 1 次提交
  12. 05 6月, 2018 1 次提交
  13. 14 5月, 2018 2 次提交
  14. 01 2月, 2018 2 次提交
  15. 31 1月, 2018 1 次提交
  16. 18 11月, 2017 1 次提交
  17. 07 11月, 2017 1 次提交
  18. 06 10月, 2017 1 次提交
  19. 11 7月, 2017 1 次提交
  20. 22 6月, 2017 2 次提交
  21. 13 6月, 2017 1 次提交
  22. 16 3月, 2017 1 次提交
    • J
      util: Rename virFileWaitForDevices · 97e0d3c3
      John Ferlan 提交于
      The function is actually in virutil.c, but prototyped in virfile.h.
      This patch fixes that by renaming the function to virWaitForDevices,
      adding the prototype in virutil.h and libvirt_private.syms, and then
      changing the callers to use the new name.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      97e0d3c3
  23. 19 2月, 2017 2 次提交
    • 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
    • J
      util: Create a new virvhba module and move/rename API's · 16416816
      John Ferlan 提交于
      Rather than have them mixed in with the virutil apis, create a separate
      virvhba.c module and move the vHBA related calls into there. Soon there
      will be more added.
      
      Also modify the names of the functions and some arguments to be more
      indicative of what is really happening. Adjust the callers respectively.
      
      While I was changing fchosttest, rather than the non-descriptive names
      test1...test6, rename them to match what the test is doing.
      16416816
  24. 16 2月, 2017 1 次提交
  25. 18 1月, 2017 1 次提交
  26. 09 1月, 2017 1 次提交
    • M
      virutil: Provide non-linux impl for virGetFCHostNameByFabricWWN · 981d9790
      Michal Privoznik 提交于
      Currently, there's only linux implementation for
      virGetFCHostNameByFabricWWN(). Since the symbol is exported in
      our private symbols we ought to have implementation for other
      platforms too. This also triggers compilation error on FreeBSD:
      
      ../src/.libs/libvirt_driver_storage_impl.a(libvirt_driver_storage_impl_la-storage_backend_scsi.o): In function `createVport':
      /usr/home/jenkins/libvirt-master/systems/libvirt-freebsd/build/src/../../src/storage/storage_backend_scsi.c:740: undefined reference to `virGetFCHostNameByFabricWWN'
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      981d9790
  27. 07 1月, 2017 1 次提交
  28. 05 1月, 2017 1 次提交
  29. 21 12月, 2016 1 次提交
  30. 24 11月, 2016 1 次提交
  31. 14 10月, 2016 1 次提交
    • J
      util: Alter return value of virReadFCHost and fix mem leak · f29b13f8
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1357416
      
      Rather than return a 0 or -1 and the *result string, return just the result
      string to the caller.  Alter all the callers to handle the different return.
      
      As a side effect or result of this, it's much clearer that we cannot just
      assign the returned string into the scsi_host wwnn, wwpn, and fabric_wwn
      fields - rather we should fetch a temporary string, then as long as our
      fetch was good, VIR_FREE what may have been there, and STEAL what we just got.
      This fixes a memory leak in the virNodeDeviceCreateXML code path through
      find_new_device and nodeDeviceLookupSCSIHostByWWN which will continually
      call nodeDeviceSysfsGetSCSIHostCaps until the expected wwnn/wwpn is found
      in the device object capabilities.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f29b13f8
  32. 13 10月, 2016 1 次提交
    • M
      src: Treat PID as signed · b7d2d4af
      Michal Privoznik 提交于
      This initially started as a fix of some debug printing in
      virCgroupDetect. However it turned out that other places suffer
      from the similar problem. While dealing with pids, esp. in cases
      where we cannot use pid_t for ABI stability reasons, we often
      chose an unsigned integer type. This makes no sense as pid_t is
      signed.
      Also, new syntax-check rule is introduced so we won't repeat this
      mistake.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      b7d2d4af
  33. 06 9月, 2016 1 次提交
    • M
      Make sure sys/types.h is included after sys/sysmacros.h · f3f15cc2
      Michal Privoznik 提交于
      In the latest glibc, major() and minor() functions are marked as
      deprecated (glibc commit dbab6577):
      
        CC       util/libvirt_util_la-vircgroup.lo
      util/vircgroup.c: In function 'virCgroupGetBlockDevString':
      util/vircgroup.c:768:5: error: '__major_from_sys_types' is deprecated:
        In the GNU C Library, `major' is defined by <sys/sysmacros.h>.
        For historical compatibility, it is currently defined by
        <sys/types.h> as well, but we plan to remove this soon.
        To use `major', include <sys/sysmacros.h> directly.
        If you did not intend to use a system-defined macro `major',
        you should #undef it after including <sys/types.h>.
        [-Werror=deprecated-declarations]
           if (virAsprintf(&ret, "%d:%d ", major(sb.st_rdev), minor(sb.st_rdev)) < 0)
           ^~
      In file included from /usr/include/features.h:397:0,
                       from /usr/include/bits/libc-header-start.h:33,
                       from /usr/include/stdio.h:28,
                       from ../gnulib/lib/stdio.h:43,
                       from util/vircgroup.c:26:
      /usr/include/sys/sysmacros.h:87:1: note: declared here
       __SYSMACROS_DEFINE_MAJOR (__SYSMACROS_FST_IMPL_TEMPL)
       ^
      
      Moreover, in the glibc commit, there's suggestion to keep
      ordering of including of header files as implemented here.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      f3f15cc2
  34. 24 6月, 2016 1 次提交
    • J
      Use virDirOpen · e81de04c
      Ján Tomko 提交于
      Switch from opendir to virDirOpen everywhere we need to report an error.
      e81de04c