1. 18 2月, 2009 1 次提交
  2. 17 2月, 2009 8 次提交
  3. 14 2月, 2009 6 次提交
    • M
      Add virFileWriteStr() · 0bb6f816
      Mark McLoughlin 提交于
      Re-factor the code from networkEnableIpForwarding() into a
      utility function in preparation for code which writes to
      sysfs files.
      0bb6f816
    • M
      Fix some error strings in xml.c · f6a5e8f7
      Mark McLoughlin 提交于
      Just some copy-and-paste mixups.
      f6a5e8f7
    • M
      virXPathInt() and virXPathUInt() don't exist · c4602255
      Mark McLoughlin 提交于
      It looks like these functions have never existed.
      c4602255
    • M
      Fix bridge.c warnings with gcc-4.4 · 9fec27be
      Mark McLoughlin 提交于
       bridge.c: In function 'brSetInetAddr':
       bridge.c:665: error: dereferencing pointer '({anonymous})' does break strict-aliasing rules
       bridge.c:665: note: initialized from here
       bridge.c:666: error: dereferencing pointer '({anonymous})' does break strict-aliasing rules
       bridge.c:666: note: initialized from here
      
      Fix qemud.c warnings with gcc-4.4
      
       qemud.c: In function ‘remoteListenTCP’:
       qemud.c:675: error: dereferencing pointer ‘sa.72’ does break strict-aliasing rules
       qemud.c:675: note: initialized from here
       qemud.c:678: error: dereferencing pointer ‘sa.73’ does break strict-aliasing rules
       qemud.c:678: note: initialized from here
      9fec27be
    • J
      Fix migrate for Xen 3.3 · 7d2b7ad5
      John Levon 提交于
      7d2b7ad5
    • J
      test:///default driver: don't dereference NULL "def" · f98b9e05
      Jim Meyering 提交于
      * src/test.c (testNetworkCreate, testNetworkDefine): Since "def" is
      set to NULL immediately after any vir*AssignDef call (to indicate we
      no longer own it and to ensure no clean-up path mistakenly frees it),
      dereference via net->def->, not def->.
      f98b9e05
  4. 13 2月, 2009 1 次提交
  5. 12 2月, 2009 1 次提交
  6. 09 2月, 2009 3 次提交
  7. 08 2月, 2009 1 次提交
  8. 06 2月, 2009 13 次提交
    • J
      src/domain_conf.c: Check the last error, not the last · 31135bff
      John Levon 提交于
              connection error, which may not have been set.
      31135bff
    • J
      003f3549
    • J
      b8b4fd4c
    • J
      robustify sexpr parser for NICs · bc68ae80
      John Levon 提交于
      bc68ae80
    • J
      remove remainder of offending strerror uses · bafd7389
      Jim Meyering 提交于
      * qemud/qemud.c (GET_CONF_STR): Use virStrerror, not strerror.
      * qemud/remote.c (remoteDispatchDomainBlockPeek): Likewise.
      (remoteDispatchDomainMemoryPeek, remoteDispatchAuthSaslInit): Likewise.
      (remoteDispatchAuthPolkit): Likewise.
      * src/lxc_container.c (lxcContainerAvailable): Likewise.
      * src/network_driver.c (networkStartNetworkDaemon): Likewise.
      (networkShutdownNetworkDaemon): Likewise.
      * src/qemu_conf.c (qemudExtractVersion, qemudNetworkIfaceConnect):
      * src/storage_conf.c (virStoragePoolLoadAllConfigs): Likewise.
      * src/storage_driver.c (storagePoolUndefine): Likewise.
      * src/uml_driver.c (umlStartup, umlStartVMDaemon): Likewise.
      * src/util.c (virFileReadAll): Likewise.
      * src/uuid.c (virUUIDGenerate): Likewise.
      * src/xen_internal.c (get_cpu_flags): Likewise.
      bafd7389
    • J
      don't include raw errno in diagnostics · d22a844b
      Jim Meyering 提交于
      * src/uml_driver.c (umlStartVMDaemon): Don't print raw errno value.
      * qemud/remote.c (remoteDispatchAuthSaslInit): Likewise.
      d22a844b
    • J
      iptables.c: Use virStrerror, not strerror. · 1e31bfb0
      Jim Meyering 提交于
      * src/iptables.c: Include "virterror_internal.h".
      Use virStrerror, not strerror.
      * src/iptables.c (notifyRulesUpdated): Use %s rather than
      string-concatenation that made sc_unmarked_diagnostics report
      a false-positive.
      1e31bfb0
    • J
      use virReportOOMError rather than more verbose equivalent · dcfa920a
      Jim Meyering 提交于
      * src/qemu_driver.c (qemudDomainSave, qemudDomainRestore)
      (qemudDomainAttachPciDiskDevice)
      (qemudDomainAttachUsbMassstorageDevice):
      dcfa920a
    • J
      qemu_driver.c: s/strerror/virStrerror.../ · e60430be
      Jim Meyering 提交于
      Perform most changs automatically, with this:
      perl -pi -e 's/\bstrerror *\((.+?)\)/virStrerror($1, ebuf, sizeof ebuf)/'
      Then, declare ebuf, as needed
      e60430be
    • J
      remove duplicate *SetCloseExec and *SetNonBlock functions · b0d49913
      Jim Meyering 提交于
      * src/qemu_driver.c: Use virSetCloseExec and virSetNonBlock,
      rather than qemuSet* functions.  Suggested by Daniel P. Berrange.
      * src/util.c (virSetCloseExec): Publicize.
      * src/util.h (virSetCloseExec): Declare
      * src/libvirt_private.syms: Add virSetCloseExec.
      b0d49913
    • J
      qemu_driver.c: use virReportSystemError in place of some qemudLog uses · caea9c00
      Jim Meyering 提交于
      ...thus eliminating many uses of strerror.
      (kvmGetMaxVCPUs): Rather than merely warning, diagnose an error
      and return -1 upon failure to open KVM_DEVICE.  Suggested by
      Daniel P. Berrange.
      caea9c00
    • J
      publicize virStrerror · 7bc569dd
      Jim Meyering 提交于
      * src/virterror.c (virStrerror): Remove "static".
      * src/virterror_internal.h (virStrerror): Declare it.
      * src/libvirt_private.syms: Add virStrerror;
      7bc569dd
    • J
      remove useless code · a9aa76ba
      Jim Meyering 提交于
      * src/bridge.c (brAddTap): Remove redundant errno=ENOMEM assignment
      after failed strdup.
      * src/cgroup.c (virCgroupFree): Remove redundant *group=NULL assignment
      after VIR_FREE(*group).
      * src/lxc_driver.c (lxcShutdown): Likewise.
      * src/xen_unified.c (xenUnifiedClose): Likewise.
      * src/xm_internal.c (xenXMDomainConfigFormat): Rewrite disk-
      and net-config-setting code to be clearer.
      a9aa76ba
  9. 05 2月, 2009 1 次提交
  10. 03 2月, 2009 4 次提交
  11. 31 1月, 2009 1 次提交