1. 12 11月, 2019 1 次提交
  2. 07 11月, 2019 1 次提交
  3. 25 10月, 2019 1 次提交
  4. 21 10月, 2019 1 次提交
  5. 15 10月, 2019 4 次提交
  6. 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
  7. 08 11月, 2018 1 次提交
  8. 20 9月, 2018 2 次提交
  9. 30 7月, 2018 1 次提交
  10. 27 7月, 2018 1 次提交
  11. 03 7月, 2018 1 次提交
  12. 17 4月, 2018 1 次提交
  13. 03 4月, 2018 1 次提交
  14. 22 2月, 2018 1 次提交
  15. 03 1月, 2018 1 次提交
    • C
      lxc: set a hostname based on the container name · faec1958
      Cédric Bosdonnat 提交于
      Set a transient hostname on containers. The hostname is computed from
      the container name, only keeping the valid characters [a-zA-Z0-9-] in it.
      This filtering is based on RFC 1123 and allows a digit to start the
      hostname.
      faec1958
  16. 10 10月, 2017 3 次提交
  17. 25 9月, 2017 1 次提交
  18. 11 7月, 2017 3 次提交
  19. 26 5月, 2017 1 次提交
  20. 04 3月, 2017 1 次提交
  21. 03 3月, 2017 1 次提交
    • N
      Fix location of blkid.h in include header · 2d8fbeb8
      Nehal J Wani 提交于
      The build system for libvirt correctly detects the location of blkid
      using PKG_CONFIG_PATH environment variable. The file blkid.pc states
      that the include flags should be: 'Cflags: -I${includedir}/blkid' but
      libvirt searches for blkid.h inside ${includedir}/blkid/blkid, which is
      wrong. Until now, the compilation for libvirt succeeded because of pure
      luck, as it had -I/usr/include as a CFLAG. This issue was faced while
      compiling libvirt on Ubuntu 16.04.2 with bare minimum dev packages and a
      custom compiled blkid kept in a non-standard $prefix.
      Signed-off-by: NNehal J Wani <nehaljw.kkd1@gmail.com>
      2d8fbeb8
  22. 23 2月, 2017 1 次提交
    • D
      Add ATTRIBUTE_FALLTHROUGH for switch cases without break · 5d84f596
      Daniel P. Berrange 提交于
      In GCC 7 there is a new warning triggered when a switch
      case has a conditional statement (eg if ... else...) and
      some of the code paths fallthrough to the next switch
      statement. e.g.
      
      conf/domain_conf.c: In function 'virDomainChrEquals':
      conf/domain_conf.c:14926:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
               if (src->targetTypeAttr != tgt->targetTypeAttr)
                  ^
      conf/domain_conf.c:14928:5: note: here
           case VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE:
           ^~~~
      conf/domain_conf.c: In function 'virDomainChrDefFormat':
      conf/domain_conf.c:22143:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
               if (def->targetTypeAttr) {
                  ^
      conf/domain_conf.c:22151:5: note: here
           default:
           ^~~~~~~
      
      GCC introduced a __attribute__((fallthrough)) to let you
      indicate that this is intentionale behaviour rather than
      a bug.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      5d84f596
  23. 12 1月, 2017 2 次提交
  24. 15 12月, 2016 1 次提交
  25. 25 11月, 2016 1 次提交
    • M
      virstring: Unify string list function names · c2a5a4e7
      Michal Privoznik 提交于
      We have couple of functions that operate over NULL terminated
      lits of strings. However, our naming sucks:
      
      virStringJoin
      virStringFreeList
      virStringFreeListCount
      virStringArrayHasString
      virStringGetFirstWithPrefix
      
      We can do better:
      
      virStringListJoin
      virStringListFree
      virStringListFreeCount
      virStringListHasString
      virStringListGetFirstWithPrefix
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      c2a5a4e7
  26. 16 8月, 2016 2 次提交
  27. 22 7月, 2016 1 次提交
    • K
      lxc: make container's init process session leader · f96cd890
      Katerina Koukiou 提交于
      This patch forces container's init process, to become a session leader,
      that is its session ID is made the same as its process ID.
      That might seem unnecessary in general, but if we want to checkpoint a
      container with CRIU, which is needed for container migration,
      we must ensure that the SID of each process inside the container points
      to a process that lives in the same PID namespace as the container.
      Therefore, we force that the session leader is the init.
      Signed-off-by: NKaterina Koukiou <k.koukiou@gmail.com>
      f96cd890
  28. 19 7月, 2016 1 次提交
  29. 02 7月, 2016 1 次提交
    • L
      util: new function virNetDevIPInfoAddToDev · 95309424
      Laine Stump 提交于
      This patch takes the code out of
      lxcContainerRenameAndEnableInterfaces() that adds all IP addresses and
      IP routes to the interface, and puts it into a utility function
      virNetDevIPInfoAddToDev() in virnetdevip.c so that it can be used by
      anyone.
      
      One small change in functionality -
      lxcContainerRenameAndEnableInterfaces() previously would add all IP
      addresses to the interface while it was still offline, then set the
      interface online, and then add the routes. Because I don't want the
      utility function to set the interface online, I've moved this up so
      the interface is first set online, then IP addresses and routes are
      added. This is the same order that the network service from
      initscripts (in ifup-ether) does it, so it shouldn't pose any problem
      (and hasn't, in the tests that I've run).
      
      (This patch had been pushed earlier in commit
      f1e0d0da, but was reverted in commit
      05eab475 because it had been
      accidentally pushed during the freeze for release 2.0.0)
      95309424
  30. 27 6月, 2016 1 次提交