]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
16 years agogenerate .gitignore files from .cvsignore ones
Jim Meyering [Fri, 17 Oct 2008 10:03:15 +0000 (10:03 +0000)]
generate .gitignore files from .cvsignore ones

* Makefile.maint (sync-vcs-ignore-files): New target.
Prompted by a patch from James Morris.
http://thread.gmane.org/gmane.comp.emulators.libvirt/8619/focus=8773
Add all (now-generated) .gitignore files.
* .gitignore: New file.
* build-aux/.gitignore: New file.
* docs/.gitignore: New file.
* docs/devhelp/.gitignore: New file.
* docs/examples/.gitignore: New file.
* docs/examples/python/.gitignore: New file.
* gnulib/lib/.gitignore: New file.
* gnulib/lib/arpa/.gitignore: New file.
* gnulib/lib/netinet/.gitignore: New file.
* gnulib/lib/sys/.gitignore: New file.
* gnulib/tests/.gitignore: New file.
* include/.gitignore: New file.
* include/libvirt/.gitignore: New file.
* po/.gitignore: New file.
* proxy/.gitignore: New file.
* python/.gitignore: New file.
* python/tests/.gitignore: New file.
* qemud/.gitignore: New file.
* src/.gitignore: New file.
* tests/.gitignore: New file.
* tests/confdata/.gitignore: New file.
* tests/sexpr2xmldata/.gitignore: New file.
* tests/virshdata/.gitignore: New file.
* tests/xencapsdata/.gitignore: New file.
* tests/xmconfigdata/.gitignore: New file.
* tests/xml2sexprdata/.gitignore: New file.

16 years agogenerate .gitignore files from .cvsignore ones
Jim Meyering [Fri, 17 Oct 2008 09:59:02 +0000 (09:59 +0000)]
generate .gitignore files from .cvsignore ones

* Makefile.maint (sync-vcs-ignore-files): New target.
Prompted by a patch from James Morris.
http://thread.gmane.org/gmane.comp.emulators.libvirt/8619/focus=8773
Add all (now-generated) .gitignore files.
* .gitignore: New file.
* build-aux/.gitignore: New file.
* docs/.gitignore: New file.
* docs/devhelp/.gitignore: New file.
* docs/examples/.gitignore: New file.
* docs/examples/python/.gitignore: New file.
* gnulib/lib/.gitignore: New file.
* gnulib/lib/arpa/.gitignore: New file.
* gnulib/lib/netinet/.gitignore: New file.
* gnulib/lib/sys/.gitignore: New file.
* gnulib/tests/.gitignore: New file.
* include/.gitignore: New file.
* include/libvirt/.gitignore: New file.
* po/.gitignore: New file.
* proxy/.gitignore: New file.
* python/.gitignore: New file.
* python/tests/.gitignore: New file.
* qemud/.gitignore: New file.
* src/.gitignore: New file.
* tests/.gitignore: New file.
* tests/confdata/.gitignore: New file.
* tests/sexpr2xmldata/.gitignore: New file.
* tests/virshdata/.gitignore: New file.
* tests/xencapsdata/.gitignore: New file.
* tests/xmconfigdata/.gitignore: New file.
* tests/xml2sexprdata/.gitignore: New file.

16 years agoqemudDomainBlockStats use qemudDiskDeviceName
Daniel Veillard [Fri, 17 Oct 2008 09:29:29 +0000 (09:29 +0000)]
qemudDomainBlockStats use qemudDiskDeviceName
* src/qemu_driver.c: use qemudDiskDeviceName to determine the block
  device name in qemudDomainBlockStats(), patch by Guido Günther
daniel

16 years ago* src/qemu_driver.c: fix qemudDiskDeviceName to handle disk devices
Daniel Veillard [Fri, 17 Oct 2008 09:24:07 +0000 (09:24 +0000)]
* src/qemu_driver.c: fix qemudDiskDeviceName to handle disk devices
  too, patch by Guido Günther
daniel

16 years ago* src/domain_conf.c: fix virDiskNameToBusDeviceIndex() to allow 0
Daniel Veillard [Fri, 17 Oct 2008 09:18:21 +0000 (09:18 +0000)]
* src/domain_conf.c: fix virDiskNameToBusDeviceIndex() to allow 0
  patch by Guido Günther
Daniel

16 years agobuild: when po-check fails, say why and suggest a fix
Jim Meyering [Thu, 16 Oct 2008 17:18:48 +0000 (17:18 +0000)]
build: when po-check fails, say why and suggest a fix

* Makefile.maint (po-check): Before, when this check failed, it just
spat out a diff mentioning two temporary files.  Now, it tells you
what's wrong and suggests a fix with a patch using the name of the
affected file (rather than temporary file names) in the diff output.

16 years agoAdd support for detecting the partition table type when scanning
Chris Lalancette [Thu, 16 Oct 2008 15:06:03 +0000 (15:06 +0000)]
Add support for detecting the partition table type when scanning
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: Chris Lalancette <clalance@redhat.com>
16 years agoCompiling with -Werror showed a possible use before initialization
Chris Lalancette [Thu, 16 Oct 2008 13:44:09 +0000 (13:44 +0000)]
Compiling with -Werror showed a possible use before initialization
in src/qemu_driver.c.  Make sure to initialize the olddisk ptr to NULL.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agobuild: exempt *.ico files from the trailing blank check
Jim Meyering [Thu, 16 Oct 2008 13:28:07 +0000 (13:28 +0000)]
build: exempt *.ico files from the trailing blank check

* .x-sc_trailing_blank: Add \.ico$ to the list.

16 years ago"make syntax-check" was complaining that network_driver.c was missing from
Chris Lalancette [Thu, 16 Oct 2008 12:04:06 +0000 (12:04 +0000)]
"make syntax-check" was complaining that network_driver.c was missing from
POTFILES.in.  Add it there, and then fix up one warning about included
c-ctypes.h that wasn't being used.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years ago* configure.in, src/Makefile.am, src/virsh_win_icon.rc:
Richard W.M. Jones [Wed, 15 Oct 2008 18:39:34 +0000 (18:39 +0000)]
* configure.in, src/Makefile.am, src/virsh_win_icon.rc:
Add a Windows icon resource.

16 years ago* src/libvirt.c: Register the remote driver even when we are
Richard W.M. Jones [Wed, 15 Oct 2008 10:33:01 +0000 (10:33 +0000)]
* src/libvirt.c: Register the remote driver even when we are
        configured --without-libvirtd.  Also adds debugging of
        registration events.

16 years agoavoid many format string warnings
Jim Meyering [Mon, 13 Oct 2008 16:46:28 +0000 (16:46 +0000)]
avoid many format string warnings

Building with --disable-nls exposed many new warnings like these:
virsh.c:4952: warning: format not a string literal and no format ...
util.c:163: warning: format not a string literal and no format arguments
All but one of the following changes add a "%s" argument before
the offending _(...) argument.

This was the only manual change:
* src/lxc_driver.c (lxcVersion): Use %s and strerror(errno)
rather than %m, to avoid a warning from gcc -Wformat-security.

Add "%s" before each warned about format-string-with-no-%-directive:
* src/domain_conf.c (virDomainHostdevSubsysUsbDefParseXML)
(virDomainDefParseString, virDomainDefParseFile):
* src/hash.c (virGetConnect, __virGetDomain, virReleaseDomain)
(__virGetNetwork, virReleaseNetwork, __virGetStoragePool)
(virReleaseStoragePool, __virGetStorageVol, virReleaseStorageVol):
* src/lxc_container.c (lxcContainerChild):
* src/lxc_driver.c (lxcDomainDefine, lxcDomainUndefine)
(lxcDomainGetInfo, lxcGetOSType, lxcDomainDumpXML)
(lxcSetupInterfaces, lxcDomainStart, lxcDomainCreateAndStart)
(lxcVersion, lxcGetSchedulerParameters):
* src/network_conf.c (virNetworkDefParseString)
(virNetworkDefParseFile):
* src/openvz_conf.c (openvzReadNetworkConf, openvzLoadDomains):
* src/openvz_driver.c (openvzDomainDefineCmd)
(openvzDomainGetInfo, openvzDomainDumpXML, openvzDomainShutdown)
(openvzDomainReboot, ADD_ARG_LIT, openvzDomainDefineXML)
(openvzDomainCreateXML, openvzDomainCreate, openvzDomainUndefine)
(openvzDomainSetAutostart, openvzDomainGetAutostart)
(openvzDomainSetVcpus):
* src/qemu_driver.c (qemudDomainBlockPeek, qemudDomainMemoryPeek):
* src/remote_internal.c (remoteDomainBlockPeek)
(remoteDomainMemoryPeek, remoteAuthPolkit):
* src/sexpr.c (sexpr_new, _string2sexpr):
* src/storage_backend_disk.c (virStorageBackendDiskMakeDataVol)
(virStorageBackendDiskCreateVol):
* src/storage_backend_fs.c
(virStorageBackendFileSystemNetFindPoolSources):
* src/storage_backend_logical.c (virStorageBackendLogicalFindLVs)
(virStorageBackendLogicalFindPoolSources):
* src/test.c (testOpenDefault, testOpenFromFile, testOpen)
(testGetDomainInfo, testDomainRestore)
(testNodeGetCellsFreeMemory):
* src/util.c (virExec):
* src/virsh.c (cmdAttachDevice, cmdDetachDevice)
(cmdAttachInterface, cmdDetachInterface, cmdAttachDisk)
(cmdDetachDisk, cmdEdit):
* src/xend_internal.c (do_connect, wr_sync, xend_op_ext)
(urlencode, xenDaemonDomainCreateXML)
(xenDaemonDomainLookupByName_ids, xenDaemonDomainLookupByID)
(xenDaemonParseSxprOS, xend_parse_sexp_desc_char)
(xenDaemonParseSxprChar, xenDaemonParseSxprDisks)
(xenDaemonParseSxpr, sexpr_to_xend_topology, sexpr_to_domain)
(xenDaemonDomainFetch, xenDaemonDomainGetAutostart)
(xenDaemonDomainSetAutostart, xenDaemonDomainMigratePerform)
(xenDaemonDomainDefineXML, xenDaemonGetSchedulerType)
(xenDaemonGetSchedulerParameters)
(xenDaemonSetSchedulerParameters, xenDaemonDomainBlockPeek)
(xenDaemonFormatSxprChr, virDomainXMLDevID):
* src/xm_internal.c (xenXMConfigCacheRefresh, xenXMDomainPinVcpu)
(xenXMDomainCreate, xenXMDomainDefineXML)
(xenXMDomainAttachDevice, xenXMDomainDetachDevice):
* src/xml.c (virXPathString, virXPathNumber, virXPathLong)
(virXPathULong, virXPathBoolean, virXPathNode, virXPathNodeSet):
* src/xs_internal.c (xenStoreOpen):

16 years agoDocumentation for NIC model selection.
Richard W.M. Jones [Mon, 13 Oct 2008 15:25:38 +0000 (15:25 +0000)]
Documentation for NIC model selection.
* docs/formatdomain.html.in, docs/formatdomain.html: Add the
documentation for NIC model selection.

16 years agoBuild failure fixed.
Richard W.M. Jones [Mon, 13 Oct 2008 15:24:34 +0000 (15:24 +0000)]
Build failure fixed.
* src/domain_conf.c: Fix build failure of the Xen proxy.

16 years agotestError format strings: explicitly include domain and network names
Jim Meyering [Sat, 11 Oct 2008 07:24:49 +0000 (07:24 +0000)]
testError format strings: explicitly include domain and network names

This repairs the "make check" failure of tests/undefine.
* src/test.c (testResumeDomain, testPauseDomain): Likewise.
(testShutdownDomain, testGetDomainInfo, ): Likewise.
(testSetMemory, testSetVcpus, testDomainCreate, testDomainUndefine)
(testDomainGetSchedulerType, testDomainGetSchedulerParams): Likewise.
(testDomainSetSchedulerParams, testNetworkUndefine): Likewise.
(testNetworkStart, testNetworkGetBridgeName): Likewise.
(testDomainCoreDump, testDomainSave): Likewise, and...
Name the file upon failed open or write.
Use strerror(errno) in diagnostics.
* tests/undefine: Adjust expected output.

test.c (testError): Remove now-ignored dom and net parameters.
This is a sytnax-only change: removing the two unused parameters
and updating all callers:
* src/test.c (GET_DOMAIN, GET_NETWORK, testError)
(testBuildCapabilities, testOpenDefault, testOpenFromFile)
(testOpen, testGetHostname, testGetURI, testGetCapabilities)
(testLookupDomainByID, testLookupDomainByUUID)
(testLookupDomainByName, testResumeDomain, testPauseDomain)
(testShutdownDomain, testGetDomainInfo, testDomainSave)
(testDomainRestore, testDomainCoreDump, testGetOSType)
(testSetMemory, testSetVcpus, testListDefinedDomains)
(testNodeGetCellsFreeMemory, testDomainCreate)
(testDomainUndefine, testDomainGetSchedulerType)
(testDomainGetSchedulerParams, testDomainSetSchedulerParams)
(testLookupNetworkByUUID, testLookupNetworkByName)
(testListNetworks, testListDefinedNetworks, testNetworkUndefine)
(testNetworkStart, testNetworkGetBridgeName): Update callers.

16 years agoFix virRealloc bug for zero-size
Daniel P. Berrange [Fri, 10 Oct 2008 18:17:13 +0000 (18:17 +0000)]
Fix virRealloc bug for zero-size

16 years agoSupport SDL config with QEMU guests
Daniel P. Berrange [Fri, 10 Oct 2008 16:52:20 +0000 (16:52 +0000)]
Support SDL config with QEMU guests

16 years agoSwitch domain device objects to array instead of linked list
Daniel P. Berrange [Fri, 10 Oct 2008 16:08:01 +0000 (16:08 +0000)]
Switch domain device objects to array instead of linked list

16 years agoSwitch storage objects to array instead of linked list
Daniel P. Berrange [Fri, 10 Oct 2008 15:13:28 +0000 (15:13 +0000)]
Switch storage objects to array instead of linked list

16 years agoSwitch network objects to array instead of linked list
Daniel P. Berrange [Fri, 10 Oct 2008 14:50:26 +0000 (14:50 +0000)]
Switch network objects to array instead of linked list

16 years agoSwitch domain objects to array instead of linked list
Daniel P. Berrange [Fri, 10 Oct 2008 14:20:37 +0000 (14:20 +0000)]
Switch domain objects to array instead of linked list

16 years agoSplit network driver out into separate files
Daniel P. Berrange [Fri, 10 Oct 2008 13:57:13 +0000 (13:57 +0000)]
Split network driver out into separate files

16 years agoFix two format string warnings on 32bit hosts
Daniel P. Berrange [Fri, 10 Oct 2008 12:54:10 +0000 (12:54 +0000)]
Fix two format string warnings on 32bit hosts

16 years agoUpdated MinGW spec file.
Richard W.M. Jones [Fri, 10 Oct 2008 11:33:10 +0000 (11:33 +0000)]
Updated MinGW spec file.
* .cvsignore, Makefile.am, autobuild.sh, configure.in,
  mingw32-libvirt.spec.in: Import the latest MinGW libvirt spec
  file.  Note that the file has been renamed to conform to
  new Fedora packaging guidelines.
* autobuild.sh: Fix a bug in the generation of the $EXTRA_RELEASE
  field when autobuilding.

16 years agovirDomainDefineXML, and a few additional cleanups
Daniel Veillard [Fri, 10 Oct 2008 09:32:27 +0000 (09:32 +0000)]
virDomainDefineXML, and a few additional cleanups
* include/libvirt/libvirt.h[.in] include/libvirt/virterror.h
  qemud/remote* src/driver.h src/libvirt.c src/libvirt_sym.version
  src/lxc_driver.c src/openvz_driver.c src/proxy_internal.c
  src/qemu_driver.c src/remote_internal.c src/test.c src/virsh.c
  src/xen_internal.c src/xen_unified.c src/xen_unified.h
  src/xend_internal.c src/xend_internal.h src/xm_internal.c
  src/xs_internal.c docs/*: cleanup virDomainCreateLinux into
  virDomainDefineXML, and a few additional cleanups
Daniel

16 years agofix index creation for disks
Daniel Veillard [Fri, 10 Oct 2008 08:37:35 +0000 (08:37 +0000)]
fix index creation for disks
* src/domain_conf.c src/util.c: fix index creation for disks >
  {sd,hd,xvd,vd}z (Sanjay Rao and Chris Wright)
Daniel

16 years agoCentralize majority of error reporting logic.
Cole Robinson [Thu, 9 Oct 2008 15:38:31 +0000 (15:38 +0000)]
Centralize majority of error reporting logic.

16 years agoFix two compile warnings
Daniel P. Berrange [Thu, 9 Oct 2008 14:50:25 +0000 (14:50 +0000)]
Fix two compile warnings

16 years agoAdd LXC scheduling parameters and support in virsh schedinfo
Dan Smith [Wed, 8 Oct 2008 16:28:48 +0000 (16:28 +0000)]
Add LXC scheduling parameters and support in virsh schedinfo

16 years agouse safewrite() and plug a leak
Daniel Veillard [Wed, 8 Oct 2008 13:44:40 +0000 (13:44 +0000)]
use safewrite() and plug a leak
* src/cgroup.c: use safewrite()
* src/qemu_driver.c: missing VIR_FREE pojnted out by Eduardo Habkost
Daniel

16 years agoavoid "make syntax-check" failure
Jim Meyering [Wed, 8 Oct 2008 09:31:13 +0000 (09:31 +0000)]
avoid "make syntax-check" failure

* src/cgroup.c (virCgroupSetValueStr): Use safe_write, not write.

16 years ago* src/qemu_driver.c: another OOM handling cleanup (Guido Günther)
Daniel Veillard [Tue, 7 Oct 2008 16:39:32 +0000 (16:39 +0000)]
* src/qemu_driver.c: another OOM handling cleanup (Guido Günther)
daniel

16 years ago* src/qemu_driver.c: don't print and extra OOM error on top of getpwuid error
Daniel Veillard [Tue, 7 Oct 2008 16:01:23 +0000 (16:01 +0000)]
* src/qemu_driver.c: don't print and extra OOM error on top of getpwuid error
(Guido Günther)
Daniel

16 years agoMove DEBUG macros to central location.
Cole Robinson [Mon, 6 Oct 2008 19:53:06 +0000 (19:53 +0000)]
Move DEBUG macros to central location.

16 years agoFix segfault if starting qemu VM with an inactive virtual network.
Cole Robinson [Mon, 6 Oct 2008 19:36:46 +0000 (19:36 +0000)]
Fix segfault if starting qemu VM with an inactive virtual network.

16 years agoSlim down schema test result output
Cole Robinson [Mon, 6 Oct 2008 19:25:29 +0000 (19:25 +0000)]
Slim down schema test result output

16 years agouse C99 initializers for virState
Daniel Veillard [Mon, 6 Oct 2008 15:40:37 +0000 (15:40 +0000)]
use C99 initializers for virState
* src/lxc_driver.c src/qemu_driver.c src/remote_internal.c
  src/storage_driver.c: use C99 initializers for virState (Guido
  Gunther)
Daniel

16 years agoFix vpath build
Daniel P. Berrange [Mon, 6 Oct 2008 10:24:31 +0000 (10:24 +0000)]
Fix vpath build

16 years ago* po/no.po: removed it's obsoleted by np.po, fixes #335211
Daniel Veillard [Mon, 6 Oct 2008 10:10:10 +0000 (10:10 +0000)]
* po/no.po: removed it's obsoleted by np.po, fixes #335211
daniel

16 years agoAdd forgotten cgroup.{c,h} and ChangeLog
Dan Smith [Fri, 3 Oct 2008 17:58:02 +0000 (17:58 +0000)]
Add forgotten cgroup.{c,h} and ChangeLog

16 years agoAdd cgroup manipulation and LXC driver
Dan Smith [Fri, 3 Oct 2008 16:46:01 +0000 (16:46 +0000)]
Add cgroup manipulation and LXC driver

16 years ago* libvirt.spec.in: fix bug #465274 to build on RHEL
Daniel Veillard [Thu, 2 Oct 2008 15:04:11 +0000 (15:04 +0000)]
* libvirt.spec.in: fix bug #465274 to build on RHEL
daniel

16 years agoFix starting qemu VM with multiple pty char devices.
Cole Robinson [Thu, 2 Oct 2008 14:10:20 +0000 (14:10 +0000)]
Fix starting qemu VM with multiple pty char devices.

16 years agoXen interface order and fix python parallel build
Daniel Veillard [Wed, 1 Oct 2008 15:31:02 +0000 (15:31 +0000)]
Xen interface order and fix python parallel build
* src/xend_internal.c: fix ordering when parsing multiple Xen
  interfaces, patch by Jim Fehlig
* python/Makefile.am: fix parallel build
Daniel

16 years agoThu Sep 25 13:37:42 IST 2008 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 25 Sep 2008 12:40:01 +0000 (12:40 +0000)]
Thu Sep 25 13:37:42 IST 2008 Mark McLoughlin <markmc@redhat.com>

        * docs/virsh.pod: fixup some minor issues - e.g. bogus
        references to "xm"

16 years agoDohh, new release is 0.4.6 not 0.4.5 !
Daniel Veillard [Wed, 24 Sep 2008 08:01:28 +0000 (08:01 +0000)]
Dohh, new release is 0.4.6 not 0.4.5 !
Daniel

16 years ago* configure.in libvirt.spec.in NEWS docs/*: release of libvirt-0.4.6
Daniel Veillard [Tue, 23 Sep 2008 20:48:49 +0000 (20:48 +0000)]
* configure.in libvirt.spec.in NEWS docs/*: release of libvirt-0.4.6
* src/storage_backend_logical.c: re-add the -f flag to vgremove
* po/*: rebuilt
Daniel

16 years ago* po/pt_BR.po: updated brazilian translation
Daniel Veillard [Tue, 23 Sep 2008 10:18:02 +0000 (10:18 +0000)]
* po/pt_BR.po: updated brazilian translation
Daniel

16 years agocleanup and removal for pools in logical backend
Daniel Veillard [Mon, 22 Sep 2008 20:22:35 +0000 (20:22 +0000)]
cleanup and removal for pools in logical backend
* src/storage_backend_logical.c: enable stop pool in logical backend
  improve portability when deleting a pool and also call pvremove
  patch by Chris Lalancette
Daniel

16 years ago* src/storage_conf.c: fixes parsing to allow no sources for a pool
Daniel Veillard [Mon, 22 Sep 2008 19:57:47 +0000 (19:57 +0000)]
* src/storage_conf.c: fixes parsing to allow no sources for a pool
  fix by Dan and Chris Lalancette
Daniel

16 years ago* src/remote_internal.c src/storage_driver.c: structure init cleanup
Daniel Veillard [Mon, 22 Sep 2008 19:53:42 +0000 (19:53 +0000)]
* src/remote_internal.c src/storage_driver.c: structure init cleanup
  by Chris Lalancette
Daniel

16 years agoread network config in OpenVZ driver
Daniel Veillard [Mon, 22 Sep 2008 15:21:44 +0000 (15:21 +0000)]
read network config in OpenVZ driver
* src/openvz_conf.c: patch from Evgeniy Sokolov to read
  network config in OpenVZ driver.
Daniel

16 years agoFix broken specfile build
Daniel P. Berrange [Thu, 18 Sep 2008 10:20:24 +0000 (10:20 +0000)]
Fix broken specfile build

16 years agoDocumentation cleanups.
Richard W.M. Jones [Thu, 18 Sep 2008 09:00:10 +0000 (09:00 +0000)]
Documentation cleanups.
        * docs/bindings.html.in: Clean up the bindings page, and add
          C# and Java.
        * docs/windows.html.in: Remove old bogus information and add
          placeholder.

16 years agoFix trailing whitespace & unmarked diagnostic warning
Daniel P. Berrange [Thu, 18 Sep 2008 08:54:23 +0000 (08:54 +0000)]
Fix trailing whitespace & unmarked diagnostic warning

16 years agosrc/openvz_driver.c: Fix segfault in OpenVZ driver
Richard W.M. Jones [Wed, 17 Sep 2008 16:07:03 +0000 (16:07 +0000)]
src/openvz_driver.c: Fix segfault in OpenVZ driver
(Evgeniy Sokolov).

16 years agoFix broken test case data files
Daniel P. Berrange [Wed, 17 Sep 2008 15:39:11 +0000 (15:39 +0000)]
Fix broken test case data files

16 years agosrc/storage_backend_disk.c: Missing include file.
Richard W.M. Jones [Wed, 17 Sep 2008 14:29:47 +0000 (14:29 +0000)]
src/storage_backend_disk.c: Missing include file.

16 years agoRemove some deadcode (Nguyen Anh Quynh).
Richard W.M. Jones [Wed, 17 Sep 2008 14:21:27 +0000 (14:21 +0000)]
Remove some deadcode (Nguyen Anh Quynh).

16 years agoChange name of "blocked" state to "idle" (John Levon).
Richard W.M. Jones [Wed, 17 Sep 2008 14:18:15 +0000 (14:18 +0000)]
Change name of "blocked" state to "idle" (John Levon).

16 years agoinclude/libvirt/libvirt.h.in, src/libvirt.c: Fix comments
Richard W.M. Jones [Wed, 17 Sep 2008 14:15:20 +0000 (14:15 +0000)]
include/libvirt/libvirt.h.in, src/libvirt.c: Fix comments
which incorrectly referred to non-existent 'virDomainFlags'
type (Anton Protopopov).

16 years agosrc/conf.c: Improved error messages in XM conf module.
Richard W.M. Jones [Wed, 17 Sep 2008 14:11:21 +0000 (14:11 +0000)]
src/conf.c: Improved error messages in XM conf module.

16 years agolibvirt.spec.in: Specfile enhancements for minimal
Richard W.M. Jones [Wed, 17 Sep 2008 14:09:13 +0000 (14:09 +0000)]
libvirt.spec.in: Specfile enhancements for minimal
"client only" build (Ben Guthro).

16 years agoconfigure.in, src/qemu_driver.h, src/qemu_driver.c: KVM
Richard W.M. Jones [Wed, 17 Sep 2008 14:07:49 +0000 (14:07 +0000)]
configure.in, src/qemu_driver.h, src/qemu_driver.c: KVM
          can determine max VCPUs at runtime (Guido Günther).

16 years agoImplement disk volume deleting.
Cole Robinson [Tue, 16 Sep 2008 16:46:08 +0000 (16:46 +0000)]
Implement disk volume deleting.

16 years agoFix reading vncdisplay from xend, add several test cases for xen vnc corner case
Cole Robinson [Tue, 9 Sep 2008 13:53:58 +0000 (13:53 +0000)]
Fix reading vncdisplay from xend, add several test cases for xen vnc corner case
s.

16 years agoFix a segfault if defining a qemu domain without an emulator.
Cole Robinson [Tue, 9 Sep 2008 13:44:42 +0000 (13:44 +0000)]
Fix a segfault if defining a qemu domain without an emulator.

16 years ago* configure.in libvirt.spec.in docs/*: preparing release of
Daniel Veillard [Mon, 8 Sep 2008 14:32:18 +0000 (14:32 +0000)]
* configure.in libvirt.spec.in docs/*: preparing release of
  libvirt-0.4.5
* po/*: rebuilt and updated de.po
daniel

16 years agoadd domain name in network configurations suport and on OpenVZ config bugfix
Daniel Veillard [Mon, 8 Sep 2008 12:45:29 +0000 (12:45 +0000)]
add domain name in network configurations suport and on OpenVZ config bugfix
* src/network_conf.c src/network_conf.h src/qemu_driver.c: add
  support for a domain name in network configurations, patch by
  JJ Reynolds with bugfix raised by Dan
* src/openvz_conf.c: fix to small bug in openvzReadConfigParam
  by Evgeniy Sokolov
Daniel

16 years agoFix potential NULL deref in openvz driver
Daniel P. Berrange [Mon, 8 Sep 2008 12:15:33 +0000 (12:15 +0000)]
Fix potential NULL deref in openvz driver

16 years agofinish applying initialization patch for logical storage backend
Daniel Veillard [Mon, 8 Sep 2008 08:03:54 +0000 (08:03 +0000)]
finish applying initialization patch for logical storage backend
* src/storage_backend_logical.c: finish applying initialization
  from Jim Fehlig patch for logical storage backend
Daniel

16 years agoFix trailing whitespace mistakes
Daniel P. Berrange [Fri, 5 Sep 2008 15:00:14 +0000 (15:00 +0000)]
Fix trailing whitespace mistakes

16 years agoConvert openvz driver to generic domain XML APIs
Daniel P. Berrange [Fri, 5 Sep 2008 14:10:58 +0000 (14:10 +0000)]
Convert openvz driver to generic domain XML APIs

16 years agoFully support mingw builds
Daniel P. Berrange [Fri, 5 Sep 2008 12:03:45 +0000 (12:03 +0000)]
Fully support mingw builds

16 years agoFix starting of xen domains without a PVFB console by removing default emulator
Daniel P. Berrange [Fri, 5 Sep 2008 11:52:12 +0000 (11:52 +0000)]
Fix starting of xen domains without a PVFB console by removing default emulator

16 years agoFix xen capabilities data creation
Daniel P. Berrange [Fri, 5 Sep 2008 11:35:43 +0000 (11:35 +0000)]
Fix xen capabilities data creation

16 years ago* src/storage_backend_fs.c: fix a signed/unsigned issue breaking
Daniel Veillard [Thu, 4 Sep 2008 13:34:42 +0000 (13:34 +0000)]
* src/storage_backend_fs.c: fix a signed/unsigned issue breaking
  virStorageBackendProbeFile(), patch by Cole Robinson
Daniel

16 years ago* src/qemu_driver.c: fix an error message, patch by Nguyen Anh Quynh
Daniel Veillard [Thu, 4 Sep 2008 13:20:28 +0000 (13:20 +0000)]
* src/qemu_driver.c: fix an error message, patch by Nguyen Anh Quynh
Daniel

16 years agoFix make check when augparse is missing
Daniel P. Berrange [Thu, 4 Sep 2008 13:17:47 +0000 (13:17 +0000)]
Fix make check when augparse is missing

16 years agofix a miscalculation of command line size for vgcreate
Daniel Veillard [Thu, 4 Sep 2008 13:13:32 +0000 (13:13 +0000)]
fix a miscalculation of command line size for vgcreate
* src/storage_backend_logical.c: fix a miscalculation of command line
  size for vgcreate, patch from Jim Fehlig
Daniel

16 years agoAdd Augeas lens' for libvirtd.conf and qemu.conf
Daniel P. Berrange [Thu, 4 Sep 2008 10:44:23 +0000 (10:44 +0000)]
Add Augeas lens' for libvirtd.conf and qemu.conf

16 years agowhen dumping code don't keep Xen domain live
Daniel Veillard [Thu, 4 Sep 2008 09:11:37 +0000 (09:11 +0000)]
when dumping code don't keep Xen domain live
* src/xend_internal.c: patch from John Levon shutting down a live
  domain is just more hazardous
Daniel

16 years ago* src/xend_internal.c src/xs_internal.c: use poweroff instead of halt
Daniel Veillard [Thu, 4 Sep 2008 09:07:42 +0000 (09:07 +0000)]
* src/xend_internal.c src/xs_internal.c: use poweroff instead of halt
  when shutting down a xen domain, patch by John Levon
Daniel

16 years ago* src/qemu_driver.c: switch flags to unsigned by James Morris
Daniel Veillard [Thu, 4 Sep 2008 08:15:05 +0000 (08:15 +0000)]
* src/qemu_driver.c: switch flags to unsigned by James Morris
* AUTHORS: add James Morris
Daniel

16 years agoAdd LXC version implementation
Dan Smith [Wed, 3 Sep 2008 17:21:27 +0000 (17:21 +0000)]
Add LXC version implementation

This patch adds an implementation of the version function to the LXC driver.
The providers use the hypervisor version in a field of one of the instances,
so we need to have something meaningful here.  AFAICT, the only real option
we have (considering the limitations of the libvirt version information) is
to use the kernel version.

16 years agoFix qemu media connect/eject to work with latest syntax. Add support for ejecting...
Cole Robinson [Wed, 3 Sep 2008 16:05:25 +0000 (16:05 +0000)]
Fix qemu media connect/eject to work with latest syntax. Add support for ejecting floppy devices and scsi cdroms.

16 years agoUpdate domain xml after usb device hotplug.
Cole Robinson [Wed, 3 Sep 2008 15:05:31 +0000 (15:05 +0000)]
Update domain xml after usb device hotplug.

16 years agoScrap media eject output to try and determine success/fail.
Cole Robinson [Wed, 3 Sep 2008 14:43:34 +0000 (14:43 +0000)]
Scrap media eject output to try and determine success/fail.

16 years agoFix disk ordering and add target duplication checking when parsing domain xml.
Cole Robinson [Wed, 3 Sep 2008 14:30:24 +0000 (14:30 +0000)]
Fix disk ordering and add target duplication checking when parsing domain xml.

16 years agoavoid a segfault on CD eject in KVM/QEmu
Daniel Veillard [Wed, 3 Sep 2008 12:52:27 +0000 (12:52 +0000)]
avoid a segfault on CD eject in KVM/QEmu
* src/qemu_driver.c: patch from Cole Robinson to avoid a segfault
  on KVM CD eject
Daniel

16 years agoadd output on attach and detach success
Daniel Veillard [Wed, 3 Sep 2008 12:38:28 +0000 (12:38 +0000)]
add output on attach and detach success
* src/virsh.c: patch from Cole Robinson to add output on attach
  and detach success
daniel

16 years ago* AUTHORS: add Cole Robinson as commiter
Daniel Veillard [Wed, 3 Sep 2008 12:24:50 +0000 (12:24 +0000)]
* AUTHORS: add Cole Robinson as commiter
daniel

16 years ago* src/storage_conf.c: add one missing check in virStoragePoolDefParseDoc
Daniel Veillard [Wed, 3 Sep 2008 07:12:37 +0000 (07:12 +0000)]
* src/storage_conf.c: add one missing check in virStoragePoolDefParseDoc
Daniel

16 years ago* src/domain_conf.c: fix a parsing error for input devices
Daniel Veillard [Tue, 2 Sep 2008 15:33:39 +0000 (15:33 +0000)]
* src/domain_conf.c: fix a parsing error for input devices
  patch by Cole Robinson
daniel

16 years agocheck availbility of emulators before reporting them in capabilities
Daniel Veillard [Tue, 2 Sep 2008 15:00:09 +0000 (15:00 +0000)]
check availbility of emulators before reporting them in capabilities
* src/qemu_conf.c: patch from Cole Robinson to report in the
  capabilities only the ones where the emulators is actually found
* po/libvirt.pot: regenerated
* src/libvirt.c: small typo fix
Daniel

16 years agoAdds storage source element for pools
Daniel Veillard [Tue, 2 Sep 2008 14:15:42 +0000 (14:15 +0000)]
Adds storage source element for pools
* src/storage_backend.h src/storage_backend_logical.c
src/storage_conf.c src/storage_conf.h src/virsh.c:
Applied patches from David Lively to add storage source
elements needed for storage pool
* docs/formatstorage.html docs/formatstorage.html.in: associated
documentation
Daniel

16 years agoqemu_conf.c: use new function, virFileReadLimFD
Jim Meyering [Tue, 2 Sep 2008 10:30:40 +0000 (10:30 +0000)]
qemu_conf.c: use new function, virFileReadLimFD

* src/qemu_conf.c (qemudExtractVersionInfo): Use virFileReadLimFD
and VIR_FREE in place of an open-coded loop and a static buffer.

16 years agoutil.c: add a file-descriptor-based wrapper for fread_file_lim
Jim Meyering [Tue, 2 Sep 2008 10:29:51 +0000 (10:29 +0000)]
util.c: add a file-descriptor-based wrapper for fread_file_lim

* src/util.c (virFileReadLimFP): New function.
(__virFileReadLimFD): New function.
* src/util.h (__virFileReadLimFD): Declare.
(virFileReadLimFD): Define.
(virFileReadAll): Rewrite to use virFileReadLimFP.

16 years agoSwitch over fork/exec code to use virExec
Daniel P. Berrange [Fri, 29 Aug 2008 07:11:15 +0000 (07:11 +0000)]
Switch over fork/exec code to use virExec