1. 18 7月, 2019 5 次提交
  2. 15 7月, 2019 1 次提交
  3. 11 7月, 2019 1 次提交
    • D
      network: acquire a pidfile in the driver root directory · c03aef7c
      Daniel P. Berrangé 提交于
      When we allow multiple instances of the driver for the same user
      account, using a separate root directory, we need to ensure mutual
      exclusion. Use a pidfile to guarantee this.
      
      In privileged libvirtd this ends up locking
      
         /var/run/libvirt/network/driver.pid
      
      In unprivileged libvirtd this ends up locking
      
        /run/user/$UID/libvirt/network/run/driver.pid
      
      NB, the latter can vary depending on $XDG_RUNTIME_DIR
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      c03aef7c
  4. 26 6月, 2019 1 次提交
    • D
      network: avoid including sys/sysctl.h on Linux · 3338c40b
      Daniel P. Berrangé 提交于
      The sys/sysctl.h header is only needed on BSD platforms to get
      the sysctlbyname() function declaration. On Linux we talk to
      procfs instead to change sysctls.
      
      Unfortunately a legacy sys/sysctl.h header does exist on Linux
      and including it has recently started triggering a deprecation
      warning from glibc.
      
      Protect its inclusion with a HAVE_SYSCTLBYNAME check instead
      so that it only gets used on platforms where we need that
      function declaration.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      3338c40b
  5. 19 6月, 2019 1 次提交
  6. 17 6月, 2019 12 次提交
  7. 23 5月, 2019 3 次提交
  8. 21 5月, 2019 6 次提交
  9. 17 5月, 2019 1 次提交
    • D
      src: don't statically link code that's already in libvirt.so · e5df4ede
      Daniel P. Berrangé 提交于
      Various binaries are statically linking to libvirt_util.la and
      other intermediate libraries we build. These intermediate libs
      all get built into the main libvirt.so shared library eventually,
      so we can dynamically link to that instead and reduce the on disk
      footprint.
      
      In libvirt-daemon RPM:
      
                  virtlockd: 1.6 MB -> 153 KB
                   virtlogd: 1.6 MB -> 157 KB
           libvirt_iohelper: 937 KB -> 23 KB
      
      In libvirt-daemon-driver-network RPM:
      
       libvirt_leaseshelper: 940 KB -> 26 KB
      
      In libvirt-daemon-driver-storage-core RPM:
      
         libvirt_parthelper: 926 KB -> 21 KB
      
      IOW, about 5.6 MB total space saving in a build done on Fedora 30
      x86_64 architecture.
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      e5df4ede
  10. 30 4月, 2019 1 次提交
  11. 24 4月, 2019 1 次提交
  12. 23 4月, 2019 1 次提交
  13. 18 4月, 2019 4 次提交
  14. 17 4月, 2019 2 次提交