1. 16 7月, 2009 1 次提交
    • J
      remove all trailing blank lines · 07613d20
      Jim Meyering 提交于
      by running this command:
      git ls-files -z | xargs -0 perl -pi -0777 -e 's/\n\n+$/\n/'
      This is in preparation for a more strict make syntax-check
      rule that will detect trailing blank lines.
      07613d20
  2. 17 6月, 2009 1 次提交
  3. 02 6月, 2009 1 次提交
    • D
      NPIV implementation for node device create and destroy · 81d0ffbc
      Daniel Veillard 提交于
      * src/Makefile.am src/node_device.[ch] src/node_device_conf.[ch]
        src/node_device_hal.[ch] src/node_device_hal_linux.c
        src/qemu_driver.c src/remote_internal.c src/storage_backend.c
        src/virsh.c src/xen_unified.c tests/nodedevxml2xmltest.c
        po/POTFILES.in: implementation for node device create and destroy
        in NPIV support, patch by David Allan
      Daniel
      81d0ffbc
  4. 19 5月, 2009 1 次提交
  5. 13 5月, 2009 1 次提交
  6. 03 4月, 2009 2 次提交
  7. 02 4月, 2009 1 次提交
  8. 03 3月, 2009 1 次提交
  9. 28 1月, 2009 1 次提交
  10. 21 1月, 2009 1 次提交
  11. 18 12月, 2008 1 次提交
  12. 02 12月, 2008 1 次提交
  13. 28 11月, 2008 2 次提交
    • C
      Instead of relying solely on polling for /dev devices to appear in libvirt, we · a9567e09
      Chris Lalancette 提交于
      really should be synchronizing against udev.  This is generally done by a call
      to udevsettle, which is exactly what this patch implements for the storage
      backends that are likely to create new /dev nodes.  I believe I've read that
      even after udevsettle, you are not guaranteed that devices are all the way
      created, so we still need the polling in the rest of the sources, but this
      should give us a much better chance of things existing as we expect.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      a9567e09
    • C
      Currently libvirt can race with udev · d20d6b1b
      Chris Lalancette 提交于
      creation of /dev/disk/by-{id,path}, so if we fail to open the directory, retry
      up to 5 seconds.  This is only likely to happen on hosts that are:
      
      1) diskless (so /dev/disk/by-{id,path} doesn't exist already), and
      2) slow, and/or heavily loaded (meaning that udev can take some time to create
      the /dev nodes).
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      d20d6b1b
  14. 17 11月, 2008 1 次提交
  15. 13 11月, 2008 1 次提交
  16. 11 11月, 2008 1 次提交
  17. 05 11月, 2008 1 次提交
  18. 03 11月, 2008 1 次提交
    • C
      Give iSCSI and disk storage backend drivers the · 17a9e03c
      Chris Lalancette 提交于
      ability to resolve any kind of volume path to the pool target volume
      path.  For instance, if the pool was defined with a
      <target><path>/dev/disk/by-id</path></target> section, and one of the
      volumes is /dev/disk/by-id/scsi-S_beaf11, then you would be able to
      call virStorageVolLookupByPath("/dev/sdc"), and get the correct volume
      back.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      17a9e03c
  19. 29 10月, 2008 2 次提交
    • J
      avoid compiler warning when all storage backends are disabled · 487d57b3
      Jim Meyering 提交于
      * src/storage_backend.c (backends): Add a NULL terminator.
      (virStorageBackendForType): Use NULL terminator rather than
      warning-provoking (possibly 0) array size.
      487d57b3
    • J
      use ARRAY_CARDINALITY more · 05589b72
      Jim Meyering 提交于
      * tests/nodeinfotest.c: Include "util.h".
      * src/xen_internal.c: Likewise.
      * src/qemu_conf.c (qemudCapsInit): Use ARRAY_CARDINALITY.
      * src/storage_backend.c (virStorageBackendForType): Likewise.
      * src/storage_backend_fs.c (virStorageBackendProbeFile): Likewise.
      * src/xen_internal.c (xenHypervisorMakeCapabilitiesInternal): Likewise.
      * src/xend_internal.c (xenDaemonParseSxpr): Likewise.
      * tests/nodeinfotest.c (mymain): Likewise.
      * tests/qparamtest.c (DO_TEST): Likewise.
      05589b72
  20. 16 10月, 2008 1 次提交
    • C
      Add support for detecting the partition table type when scanning · eeff3cdc
      Chris Lalancette 提交于
      iSCSI volumes.  This is implemented in the
      virStorageBackendUpdateVolInfoFD function, so all future callers will
      automatically benefit.  This is a somewhat large patch because the
      conversion of the virStorageBackendPartTableTypeToString necessitated
      a change to the formatToString and formatFromString function pointers,
      which caused fallout in other places in the storage stuff.  The good
      news is that most of these callers are now converted over to the
      VIR_ENUM_IMPL, which means a lot of redundant code is now gone.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      eeff3cdc
  21. 05 9月, 2008 1 次提交
  22. 27 8月, 2008 1 次提交
  23. 20 8月, 2008 1 次提交
  24. 08 8月, 2008 1 次提交
  25. 19 7月, 2008 1 次提交
    • J
      remove unnecessary "V = NULL;" stmts after VIR_FREE(V) · 3ff5480d
      Jim Meyering 提交于
      * src/domain_conf.c (virDomainChrDefParseXML)
      (virDomainNetDefParseXML): Likewise.
      * src/iptables.c (iptRuleFree): Likewise.
      * src/storage_backend.c (virStorageBackendRunProgRegex): Likewise.
      * src/test.c (testOpenFromFile): Likewise.
      * src/xmlrpc.c (xmlRpcCallRaw): Likewise.
      3ff5480d
  26. 24 6月, 2008 1 次提交
  27. 17 6月, 2008 1 次提交
  28. 06 6月, 2008 1 次提交
  29. 23 5月, 2008 1 次提交
    • R
      Standardize use of header files, making internal.h primary. · 1d8d4f86
      Richard W.M. Jones 提交于
      	* qemud/internal.h, qemud/qemud.h: Rename this file so it
      	doesn't conflict with src/internal.h.
      	* HACKING: Document how header files should be used.
      	* qemud/Makefile.am: Add src/ directory to includes.
      	* qemud/event.c, qemud/mdns.c, qemud/qemud.c, qemud/remote.c,
      	qemud/remote_protocol.c, qemud/remote_protocol.h,
      	qemud/remote_protocol.x, src/buf.c, src/libvirt.c,
      	src/nodeinfo.c, src/qemu_conf.c, src/qemu_driver.c,
      	src/stats_linux.c, src/storage_backend.c, src/storage_backend_fs.c,
      	src/storage_backend_iscsi.c, src/storage_backend_logical.c,
      	src/storage_conf.c, src/storage_driver.c, src/util.c,
      	src/util.h, src/virsh.c, src/virterror.c, src/xend_internal.c,
      	src/xml.c, tests/reconnect.c, tests/xmlrpctest.c,
      	tests/qparamtest.c: Standardize	use of header files.
      	* docs/*, po/*: Rebuild docs.
      1d8d4f86
  30. 11 4月, 2008 1 次提交
  31. 27 3月, 2008 1 次提交
    • J
      Mark many more strings for translation. · 513bd04c
      Jim Meyering 提交于
      * Makefile.maint (err_func_re): Add to the list and make it readable.
      * po/POTFILES.in: Add src/util.c and src/xm_internal.c, and sort.
      * src/storage_backend.c: Fix comment.
      * src/util.c (virFileLinkPointsTo): Mark a string.
      * qemud/remote.c (remoteDispatchClientRequest): Mark strings.
      (remoteDispatchOpen, CHECK_CONN, remoteDispatchGetType): Likewise.
      (remoteDispatchDomainGetSchedulerType): Likewise.
      (remoteDispatchDomainGetSchedulerParameters): Likewise.
      (remoteDispatchDomainSetSchedulerParameters): Likewise.
      (remoteDispatchDomainBlockStats): Likewise.
      (remoteDispatchDomainInterfaceStats): Likewise.
      (remoteDispatchDomainAttachDevice, remoteDispatchDomainCreate):
      (remoteDispatchDomainDestroy, remoteDispatchDomainDetachDevice):
      (remoteDispatchDomainDumpXml, remoteDispatchDomainGetAutostart):
      (remoteDispatchDomainGetInfo, remoteDispatchDomainGetMaxMemory):
      (remoteDispatchDomainGetMaxVcpus, remoteDispatchDomainGetOsType):
      (remoteDispatchDomainGetVcpus): Likewise.
      (remoteDispatchDomainMigratePerform): Likewise.
      (remoteDispatchListDefinedDomains, remoteDispatchDomainPinVcpu):
      (remoteDispatchDomainReboot, remoteDispatchDomainResume):
      (remoteDispatchDomainSave, remoteDispatchDomainCoreDump):
      (remoteDispatchDomainSetAutostart): Likewise.
      (remoteDispatchDomainSetMaxMemory, remoteDispatchDomainSetMemory):
      (remoteDispatchDomainSetVcpus, remoteDispatchDomainShutdown):
      (remoteDispatchDomainSuspend, remoteDispatchDomainUndefine):
      (remoteDispatchListDefinedNetworks, remoteDispatchListDomains):
      (remoteDispatchListNetworks, remoteDispatchNetworkCreate):
      (remoteDispatchNetworkDestroy, remoteDispatchNetworkDumpXml):
      (remoteDispatchNetworkGetAutostart, remoteDispatchNetworkGetBridgeName):
      (remoteDispatchNetworkSetAutostart, remoteDispatchNetworkUndefine):
      (addrToString, remoteDispatchAuthSaslInit, remoteDispatchAuthSaslStart):
      (remoteDispatchAuthSaslStep, remoteDispatchListDefinedStoragePools):
      (remoteDispatchListStoragePools, remoteDispatchStoragePoolCreate):
      (remoteDispatchStoragePoolBuild, remoteDispatchStoragePoolDestroy):
      (remoteDispatchStoragePoolDelete, remoteDispatchStoragePoolRefresh):
      (remoteDispatchStoragePoolGetInfo, remoteDispatchStoragePoolDumpXml):
      (remoteDispatchStoragePoolGetAutostart): Likewise.
      (remoteDispatchStoragePoolSetAutostart):
      (remoteDispatchStoragePoolListVolumes):
      (remoteDispatchStoragePoolNumOfVolumes):
      (remoteDispatchStoragePoolUndefine, remoteDispatchStorageVolCreateXml):
      (remoteDispatchStorageVolDelete, remoteDispatchStorageVolGetInfo):
      (remoteDispatchStorageVolDumpXml, remoteDispatchStorageVolGetPath):
      (remoteDispatchStorageVolLookupByName): Likewise.
      * src/qemu_driver.c (qemudOpenMonitor, qemudStartVMDaemon):
      (dhcpStartDhcpDaemon, qemudStartNetworkDaemon):
      (qemudDomainSuspend, qemudDomainResume, qemudDomainShutdown):
      (qemudDomainGetOSType, qemudDomainSetMaxMemory):
      (qemudDomainSetMemory, qemudDomainGetInfo, qemudDomainSave):
      (qemudDomainRestore, qemudDomainDumpXML, qemudDomainStart):
      (qemudDomainUndefine, qemudDomainChangeCDROM):
      (qemudDomainAttachDevice, qemudDomainGetAutostart):
      (qemudDomainSetAutostart, qemudDomainInterfaceStats):
      (qemudNetworkLookupByUUID, qemudNetworkLookupByName):
      (qemudNetworkUndefine, qemudNetworkStart, qemudNetworkDestroy):
      (qemudNetworkDumpXML, qemudNetworkGetAutostart):
      (qemudNetworkSetAutostart): Likewise.
      * src/virsh.c (cmdVcpupin, cmdAttachDevice, cmdDetachDevice): Likewise.
      * src/xm_internal.c (xenXMConfigCacheRefresh, xenXMDomainPinVcpu): Likewise.
      513bd04c
  32. 18 3月, 2008 1 次提交
  33. 17 3月, 2008 1 次提交
  34. 27 2月, 2008 1 次提交
  35. 23 2月, 2008 1 次提交
    • J
      avoid format string warnings · b1b23f76
      Jim Meyering 提交于
      Avoid warnings like this:
      file:nnn:format not a string literal and no format arguments
      
      * qemud/qemud.c: Insert a "%s" format argument.
      * qemud/remote.c: Likewise.
      * src/iptables.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/storage_backend.c: Likewise.
      * src/storage_backend_fs.c: Likewise.
      * src/storage_backend_iscsi.c Likewise.
      * src/storage_backend_logical.c: Likewise.
      * src/storage_conf.c: Likewise.
      * src/storage_driver.c: Likewise.
      b1b23f76
  36. 20 2月, 2008 2 次提交