]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
16 years agoQEMU domain event thread safety
Daniel P. Berrange [Thu, 4 Dec 2008 21:09:20 +0000 (21:09 +0000)]
QEMU domain event thread safety

16 years agoAdd locking for (nearly complete) thread safety to QEMU driver
Daniel P. Berrange [Thu, 4 Dec 2008 21:06:41 +0000 (21:06 +0000)]
Add locking for (nearly complete) thread safety to QEMU driver

16 years agoMerge all return paths from QEMU driver APIs
Daniel P. Berrange [Thu, 4 Dec 2008 21:04:30 +0000 (21:04 +0000)]
Merge all return paths from QEMU driver APIs

16 years agoStub out node device APIs in test driver
Daniel P. Berrange [Thu, 4 Dec 2008 21:00:50 +0000 (21:00 +0000)]
Stub out node device APIs in test driver

16 years agoAdd locking for thread safety to test driver
Daniel P. Berrange [Thu, 4 Dec 2008 20:59:06 +0000 (20:59 +0000)]
Add locking for thread safety to test driver

16 years agoMerge all return paths from test driver APIs
Daniel P. Berrange [Thu, 4 Dec 2008 20:57:47 +0000 (20:57 +0000)]
Merge all return paths from test driver APIs

16 years agoRemove macros for accessing test driver internal state
Daniel P. Berrange [Thu, 4 Dec 2008 20:56:10 +0000 (20:56 +0000)]
Remove macros for accessing test driver internal state

16 years agoAdd thread locking stubs
Daniel P. Berrange [Thu, 4 Dec 2008 20:53:20 +0000 (20:53 +0000)]
Add thread locking stubs

16 years agorelease of 0.5.1
Daniel Veillard [Thu, 4 Dec 2008 15:54:26 +0000 (15:54 +0000)]
release of 0.5.1
* src/libvirt_sym.version.in configure.in NEWS docs/*: release
  of 0.5.1
* po/*: updated and regenerated
daniel

16 years agofix crash and regression when defining a storage volume without a format
Daniel Veillard [Thu, 4 Dec 2008 15:22:04 +0000 (15:22 +0000)]
fix crash and regression when defining a storage volume without a format
* src/storage_conf.c: fix crash and regression when defining
  a storage volume without a format (Cole Robinson)
Daniel

16 years agoFix documentation cut and paste errors, and a virsh typo.
Cole Robinson [Thu, 4 Dec 2008 14:51:57 +0000 (14:51 +0000)]
Fix documentation cut and paste errors, and a virsh typo.

16 years agoIncrease timeout for initial monitor poll, to prevent a guest from failing to start...
Cole Robinson [Thu, 4 Dec 2008 14:47:12 +0000 (14:47 +0000)]
Increase timeout for initial monitor poll, to prevent a guest from failing to start if it has to wait for a physical cdrom to spin up.

16 years agopatch setting MTU on tap interface
Daniel Veillard [Thu, 4 Dec 2008 14:38:31 +0000 (14:38 +0000)]
patch setting MTU on tap interface
* src/bridge.c: patch setting MTU on tap interface to be the same
  as the value for the bridge (Eduardo Habkost)
daniel

16 years agoChangeLog: remove stray commas
Jim Meyering [Thu, 4 Dec 2008 13:08:32 +0000 (13:08 +0000)]
ChangeLog: remove stray commas

16 years agoDifferentiate between active and inactive configs by honoring the
Guido Günther [Thu, 4 Dec 2008 12:02:59 +0000 (12:02 +0000)]
Differentiate between active and inactive configs by honoring the
VIR_DOMAIN_XML_INACTIVE flag.

16 years agoalso look for /usb/bin/kvm
Guido Günther [Thu, 4 Dec 2008 10:45:31 +0000 (10:45 +0000)]
also look for /usb/bin/kvm

16 years agofix inadequate initialization in storage and test drivers
Jim Meyering [Tue, 2 Dec 2008 15:59:14 +0000 (15:59 +0000)]
fix inadequate initialization in storage and test drivers

* src/storage_driver.c (storageListPools): Set all "names" entries to 0.
(storageListDefinedPools, storagePoolListVolumes): Likewise.
* src/test.c (testStoragePoolListVolumes): Likewise.

16 years agoOlder distributions (i.e. RHEL-5) don't have udevadm at all, but they do
Chris Lalancette [Tue, 2 Dec 2008 12:41:29 +0000 (12:41 +0000)]
Older distributions (i.e. RHEL-5) don't have udevadm at all, but they do
have udevsettle.  So change our tests to prefer udevadm if it exists, but
to fall back to udevsettle if it does not.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoFix driver ordering to make domain autostart work (Gerd von Egidy)
Daniel P. Berrange [Tue, 2 Dec 2008 11:37:55 +0000 (11:37 +0000)]
Fix driver ordering to make domain autostart work (Gerd von Egidy)

16 years agoFix recording of UML driver watch to make inotify work
Daniel P. Berrange [Tue, 2 Dec 2008 11:23:27 +0000 (11:23 +0000)]
Fix recording of UML driver watch to make inotify work

16 years agotests: daemon-conf: accommodate numeric-valued config params
Jim Meyering [Mon, 1 Dec 2008 15:04:28 +0000 (15:04 +0000)]
tests: daemon-conf: accommodate numeric-valued config params

This test would hang when failing to perturb the soon-to-be-
added numeric (and non-boolean) valued parameters, max_clients,
max_workers, min_workers.
* tests/daemon-conf: Require that all commented-out settings
in libvirtd.conf have the same form.  Before, two parameters
were not being tested, since a space had snuck between the
leading "#" and the "param = value" parts.
Apply each RHS-value-perturbing transformation
separately, not in series.
Let VERBOSE=yes turn on debugging.
Be more verbose by default, since this is a relatively
long-running test.
* qemud/libvirtd.conf: Normalize the spacing around each setting
that is to be perturbed by tests/daemon-conf.

16 years agouml: don't free an uninitialized variable
Jim Meyering [Mon, 1 Dec 2008 11:08:16 +0000 (11:08 +0000)]
uml: don't free an uninitialized variable

* src/uml_driver.c (umlDomainShutdown): Initialize "info".
Patch and bug report from Ron Yorston <rmy@tigress.co.uk>.

16 years agoClose directory handle when done
Daniel P. Berrange [Sun, 30 Nov 2008 18:37:35 +0000 (18:37 +0000)]
Close directory handle when done

16 years agoPrefer xenstore driver for listDomains, since xen HV reports ghost ids of
Guido Günther [Fri, 28 Nov 2008 15:25:04 +0000 (15:25 +0000)]
Prefer xenstore driver for listDomains, since xen HV reports ghost ids of
already shutdown domains in some xen versions

16 years agoAllow remote://hostname/ style URIs for automatic driver probe. Fix virGetVersion...
Daniel P. Berrange [Fri, 28 Nov 2008 12:03:20 +0000 (12:03 +0000)]
Allow remote://hostname/ style URIs for automatic driver probe. Fix virGetVersion impl

16 years agoFix XM driver handling of disk source paths
Daniel P. Berrange [Fri, 28 Nov 2008 11:23:34 +0000 (11:23 +0000)]
Fix XM driver handling of disk source paths

16 years agoFix libnuma use to build with v1 compatability code
Daniel P. Berrange [Fri, 28 Nov 2008 11:20:27 +0000 (11:20 +0000)]
Fix libnuma use to build with v1 compatability code

16 years agoInstead of relying solely on polling for /dev devices to appear in libvirt, we
Chris Lalancette [Fri, 28 Nov 2008 07:50:20 +0000 (07:50 +0000)]
Instead of relying solely on polling for /dev devices to appear in libvirt, we
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: Chris Lalancette <clalance@redhat.com>
16 years agoCurrently libvirt can race with udev
Chris Lalancette [Fri, 28 Nov 2008 07:42:21 +0000 (07:42 +0000)]
Currently libvirt can race with udev
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: Chris Lalancette <clalance@redhat.com>
16 years ago* src/xen_unified.c: use preferably xend method to update
Daniel Veillard [Thu, 27 Nov 2008 16:16:13 +0000 (16:16 +0000)]
* src/xen_unified.c: use preferably xend method to update
  the maximum memory of a xen guest (Jim Fehlig)
Daniel

16 years ago* libvirt.spec.in: cleanups and missing dep for hal
Daniel Veillard [Wed, 26 Nov 2008 14:46:49 +0000 (14:46 +0000)]
* libvirt.spec.in: cleanups and missing dep for hal
Daniel

16 years agoRelease of 0.5.0
Daniel Veillard [Tue, 25 Nov 2008 15:48:11 +0000 (15:48 +0000)]
Release of 0.5.0
* configure.in docs/* NEWS: release of 0.5.0
* po/*: updated from the translators and merged
* docs/apibuild.py src/libvirt.c: avoid some warnings at doc
  generation time
daniel

16 years agoconfigure.in: avoid the following diagnostic when running ../configure ...
Jim Meyering [Tue, 25 Nov 2008 15:36:09 +0000 (15:36 +0000)]
configure.in: avoid the following diagnostic when running ../configure ...

cp: cannot stat `COPYING.LIB': No such file or directory

16 years agodon't silently skip a test
Jim Meyering [Tue, 25 Nov 2008 15:34:59 +0000 (15:34 +0000)]
don't silently skip a test

* tests/Makefile.am (EXTRA_DIST): Distribute domainschemadata/.
* tests/domainschematest: Fail the test if find invocation fails.

16 years agoDisable UML driver on mingw RPM build
Daniel P. Berrange [Tue, 25 Nov 2008 11:27:51 +0000 (11:27 +0000)]
Disable UML driver on mingw RPM build

16 years agoAdd missing translations
Daniel P. Berrange [Tue, 25 Nov 2008 11:18:08 +0000 (11:18 +0000)]
Add missing translations

16 years agoImplement autostart for XM driver
Daniel P. Berrange [Tue, 25 Nov 2008 11:04:34 +0000 (11:04 +0000)]
Implement autostart for XM driver

16 years agoSupport domain lifecycle events for Xen (Ben Guthro & Daniel Berrange)
Daniel P. Berrange [Tue, 25 Nov 2008 10:44:52 +0000 (10:44 +0000)]
Support domain lifecycle events for Xen (Ben Guthro & Daniel Berrange)

16 years agoAvoid symbol clash with win32 headers and node device APIs
Daniel P. Berrange [Tue, 25 Nov 2008 10:37:02 +0000 (10:37 +0000)]
Avoid symbol clash with win32 headers and node device APIs

16 years ago* src/virterror.c (virReportErrorHelper): Sync doc to code.
Jim Meyering [Tue, 25 Nov 2008 10:32:27 +0000 (10:32 +0000)]
* src/virterror.c (virReportErrorHelper): Sync doc to code.

16 years agolibvirt.c: document the virState* functions
Jim Meyering [Tue, 25 Nov 2008 10:31:52 +0000 (10:31 +0000)]
libvirt.c: document the virState* functions

* src/libvirt.c (virStateActive, virStateCleanup, virStateReload):
(virStateActive): Add per-function comments.

16 years agoSet default vCPUs to match pCPUs for OpenVZ containers (Evgeniy Sokolov )
Daniel P. Berrange [Mon, 24 Nov 2008 19:34:21 +0000 (19:34 +0000)]
Set default vCPUs to match pCPUs for OpenVZ containers (Evgeniy Sokolov )

16 years agoFix python bindings events code (David Lively)
Daniel P. Berrange [Mon, 24 Nov 2008 19:28:12 +0000 (19:28 +0000)]
Fix python bindings events code (David Lively)

16 years agoFix test suite build when Xen driver is disabled
Daniel P. Berrange [Mon, 24 Nov 2008 19:23:39 +0000 (19:23 +0000)]
Fix test suite build when Xen driver is disabled

16 years agoDisable UML build on mingw32
Daniel P. Berrange [Mon, 24 Nov 2008 16:50:18 +0000 (16:50 +0000)]
Disable UML build on mingw32

16 years ago* src/Makefile.am: look for libvirt_sym.version in builddir
Guido Günther [Mon, 24 Nov 2008 15:07:45 +0000 (15:07 +0000)]
* src/Makefile.am: look for libvirt_sym.version in builddir

16 years agotests: new test: virsh-synopsis
Jim Meyering [Mon, 24 Nov 2008 07:13:29 +0000 (07:13 +0000)]
tests: new test: virsh-synopsis

* tests/virsh-synopsis: new file
* tests/Makefile.am (test_scripts): Add virsh-synopsis.
* src/virsh.c: Correct help SYNOPSIS for each of seven commands.

When I first ran this script, "make check" failed like this:
  ...
  invalid help SYNOPSIS for net-create:
      create a network from an XML <file>
  invalid help SYNOPSIS for net-define:
      define a network from an XML <file>
  invalid help SYNOPSIS for net-start:
      start <network>
  invalid help SYNOPSIS for pool-create:
      create a pool from an XML <file>
  invalid help SYNOPSIS for pool-define:
      define a pool from an XML <file>
  invalid help SYNOPSIS for pool-start:
      start <pool>
  invalid help SYNOPSIS for vol-create:
      create <file>
  FAIL: virsh-synopsis

16 years agotests: virsh-all: new script
Jim Meyering [Mon, 24 Nov 2008 07:12:41 +0000 (07:12 +0000)]
tests: virsh-all: new script

* tests/virsh-all: New script.
* tests/Makefile.am (test_scripts): Add virsh-all.

16 years agoMove the expected output data from virshdata/*.txt into virshtest.c.
Jim Meyering [Mon, 24 Nov 2008 07:11:26 +0000 (07:11 +0000)]
Move the expected output data from virshdata/*.txt into virshtest.c.

* tests/virshtest.c: Embed literal, expected output here, rather than
using virshdata/*.txt file names.
Factor out some common constructs.
(testCompareOutputLit): New function.
(testCompareOutput): #ifdef-out, not that it's unused.
* tests/Makefile.am (SUBDIRS): Remove virshdata/ and all files in it.
* docs/testnode.xml: Fix typo in a comment.
* configure.in (AC_OUTPUT): Remove tests/virshdata/Makefile.

16 years ago* gnulib/tests/test-EOVERFLOW: Remove.
Jim Meyering [Mon, 24 Nov 2008 07:09:36 +0000 (07:09 +0000)]
* gnulib/tests/test-EOVERFLOW: Remove.

* gnulib/tests/.cvsignore: Add test-EOVERFLOW, then...
Run "make sync-vcs-ignore-files" to Update .gitignore files.

16 years agoRe-generate website docs
Daniel P. Berrange [Fri, 21 Nov 2008 12:54:51 +0000 (12:54 +0000)]
Re-generate website docs

16 years agoRegenerate API docs
Daniel P. Berrange [Fri, 21 Nov 2008 12:51:41 +0000 (12:51 +0000)]
Regenerate API docs

16 years agoMisc tweaks to node device impl
Daniel P. Berrange [Fri, 21 Nov 2008 12:46:39 +0000 (12:46 +0000)]
Misc tweaks to node device impl

16 years agoPython binding for node device APIs (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:41:15 +0000 (12:41 +0000)]
Python binding for node device APIs (David Lively)

16 years agoNode device support in virsh (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:39:48 +0000 (12:39 +0000)]
Node device support in virsh (David Lively)

16 years agoRemote protocol support for node devices (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:31:04 +0000 (12:31 +0000)]
Remote protocol support for node devices (David Lively)

16 years agoNode device driver for HAL and DeviceKit (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:27:11 +0000 (12:27 +0000)]
Node device driver for HAL and DeviceKit (David Lively)

16 years agoInternal APIs for handling node device XML configuration (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:20:45 +0000 (12:20 +0000)]
Internal APIs for handling node device XML configuration (David Lively)

16 years agoPublic API for node device enumeration (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:19:22 +0000 (12:19 +0000)]
Public API for node device enumeration (David Lively)

16 years agoOptional dlopen support for drivers
Daniel P. Berrange [Fri, 21 Nov 2008 12:16:08 +0000 (12:16 +0000)]
Optional dlopen support for drivers

16 years agoAdd export of virDomainEventCallbackListRemoveConn method
Daniel P. Berrange [Fri, 21 Nov 2008 11:44:03 +0000 (11:44 +0000)]
Add export of virDomainEventCallbackListRemoveConn method

16 years agoFix two memory leaks in domain conf and LXC code
Daniel P. Berrange [Fri, 21 Nov 2008 11:42:51 +0000 (11:42 +0000)]
Fix two memory leaks in domain conf and LXC code

16 years agoMisc fixes to event registration failure cases
Daniel P. Berrange [Fri, 21 Nov 2008 10:22:58 +0000 (10:22 +0000)]
Misc fixes to event registration failure cases

16 years agoFix crash due to failure to unregister event callbacks in QEMU driver (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 10:17:22 +0000 (10:17 +0000)]
Fix crash due to failure to unregister event callbacks in QEMU driver (David Lively)

16 years agoAdd Xen compiler flags for stats_linux.c build
Daniel P. Berrange [Fri, 21 Nov 2008 10:12:03 +0000 (10:12 +0000)]
Add Xen compiler flags for stats_linux.c build

16 years agoAllow UML build to be disabled in RPM
Daniel P. Berrange [Fri, 21 Nov 2008 10:09:08 +0000 (10:09 +0000)]
Allow UML build to be disabled in RPM

16 years ago* po/POTFILES.in src/uml_conf.h src/uml_driver.c: fixes syntax
Daniel Veillard [Fri, 21 Nov 2008 10:06:28 +0000 (10:06 +0000)]
* po/POTFILES.in src/uml_conf.h src/uml_driver.c: fixes syntax
  check errors, reported by Ben Guthro
daniel

16 years agoFix crash on NULL uri scheme
Daniel P. Berrange [Thu, 20 Nov 2008 14:33:59 +0000 (14:33 +0000)]
Fix crash on NULL uri scheme

16 years agoAdd an initial User Mode Linux Driver
Daniel P. Berrange [Wed, 19 Nov 2008 16:58:23 +0000 (16:58 +0000)]
Add an initial User Mode Linux Driver

16 years agoAdd a virFreeCallback to event loop APIs
Daniel P. Berrange [Wed, 19 Nov 2008 16:24:01 +0000 (16:24 +0000)]
Add a virFreeCallback to event loop APIs

16 years agoChange public API for virEventAddHandle to allow multiple registrations per FD
Daniel P. Berrange [Wed, 19 Nov 2008 16:19:36 +0000 (16:19 +0000)]
Change public API for virEventAddHandle to allow multiple registrations per FD

16 years agoAdd a virFreeCallback to virDomainEventRegister (from David Lively)
Daniel P. Berrange [Wed, 19 Nov 2008 15:25:24 +0000 (15:25 +0000)]
Add a virFreeCallback to virDomainEventRegister (from David Lively)

16 years agoFix windows build & build without QEMU driver
Daniel P. Berrange [Tue, 18 Nov 2008 12:46:13 +0000 (12:46 +0000)]
Fix windows build & build without QEMU driver

16 years agoAdd QEMU driver events for defined/undefined config files
Daniel P. Berrange [Mon, 17 Nov 2008 16:52:32 +0000 (16:52 +0000)]
Add QEMU driver events for defined/undefined config files

16 years agoAdd domain events detail information
Daniel P. Berrange [Mon, 17 Nov 2008 16:43:00 +0000 (16:43 +0000)]
Add domain events detail information

16 years agoLink QEMU, LXC, network and storage drivers directly into libvirtd
Daniel P. Berrange [Mon, 17 Nov 2008 12:18:18 +0000 (12:18 +0000)]
Link QEMU, LXC, network and storage drivers directly into libvirtd

16 years agoPush URI probing logic down into individual drivers
Daniel P. Berrange [Mon, 17 Nov 2008 11:44:51 +0000 (11:44 +0000)]
Push URI probing logic down into individual drivers

16 years agoRefactor storage backends to avoid dependancy from config parser to implementation
Daniel P. Berrange [Mon, 17 Nov 2008 11:19:33 +0000 (11:19 +0000)]
Refactor storage backends to avoid dependancy from config parser to implementation

16 years agoUse a versioned linker script
Daniel P. Berrange [Mon, 17 Nov 2008 11:03:25 +0000 (11:03 +0000)]
Use a versioned linker script

16 years agoBuild drivers as libtool convenience libs
Daniel P. Berrange [Mon, 17 Nov 2008 10:43:30 +0000 (10:43 +0000)]
Build drivers as libtool convenience libs

16 years agoFix domain events python thread safety & incorrect enum generation
Daniel P. Berrange [Mon, 17 Nov 2008 10:26:09 +0000 (10:26 +0000)]
Fix domain events python thread safety & incorrect enum generation

16 years agoFix updating of openvz config file params
Daniel P. Berrange [Mon, 17 Nov 2008 09:55:59 +0000 (09:55 +0000)]
Fix updating of openvz config file params

16 years agoUse different separator for lvs command to unbreak parsing for encrypted devs.
Cole Robinson [Fri, 14 Nov 2008 16:10:47 +0000 (16:10 +0000)]
Use different separator for lvs command to unbreak parsing for encrypted devs.

16 years agoavoid format string warnings
Jim Meyering [Fri, 14 Nov 2008 14:19:37 +0000 (14:19 +0000)]
avoid format string warnings

* src/openvz_driver.c (ADD_ARG_LIT): Add "%s" arg before _(...).
* src/qemu_driver.c (PCI_ATTACH_OK_MSG): Likewise.
* src/util.c (virExec, virRun): Likewise.

16 years agoKVM/QEmu migration support
Daniel Veillard [Fri, 14 Nov 2008 08:42:47 +0000 (08:42 +0000)]
KVM/QEmu migration support
* qemud/remote.c qemud/remote_dispatch_localvars.h
  qemud/remote_dispatch_proc_switch.h qemud/remote_dispatch_prototypes.h
  qemud/remote_protocol.c qemud/remote_protocol.h
  qemud/remote_protocol.x src/driver.h src/libvirt.c
  src/libvirt_internal.h src/libvirt_sym.version src/lxc_driver.c
  src/openvz_driver.c src/qemu_conf.h src/qemu_driver.c
  src/remote_internal.c src/test.c src/virsh.c: large patch to
  add migration support for KVM/QEmu, based on the work of Rich Jones
  and Chris Lalancette. This introduce a new version of the prepare
  and finish steps of the migration, so changes the driver API and
  a lot of code.
Daniel

16 years agoAdd bridged network to openvz driver & add some openvz docs
Daniel P. Berrange [Wed, 12 Nov 2008 16:35:47 +0000 (16:35 +0000)]
Add bridged network to openvz driver & add some openvz docs

16 years agoRevert previous storage patch which broke test driver
Daniel P. Berrange [Wed, 12 Nov 2008 16:28:27 +0000 (16:28 +0000)]
Revert previous storage patch which broke test driver

16 years agoRe-arrange storage backend registration
Daniel P. Berrange [Tue, 11 Nov 2008 15:52:16 +0000 (15:52 +0000)]
Re-arrange storage backend registration

16 years agoSupport OpenVZ filesystem template config in XML dump
Daniel P. Berrange [Mon, 10 Nov 2008 12:08:19 +0000 (12:08 +0000)]
Support OpenVZ filesystem template config in XML dump

16 years agotweak lstat.c to avoid mingw link failure
Jim Meyering [Fri, 7 Nov 2008 16:44:38 +0000 (16:44 +0000)]
tweak lstat.c to avoid mingw link failure

* gnulib/lib/lstat.c: Include <sys/stat.h> *before* the use of stat in
orig_stat.  Otherwise, on mingw (which lacks lstat), any program using
the lstat module would not get the redefinition-to-stat provided by
gnulib's sys/stat.h.  Reported by Daniel P. Berrange.

16 years agomark a few diagnostics for translation
Jim Meyering [Fri, 7 Nov 2008 16:43:58 +0000 (16:43 +0000)]
mark a few diagnostics for translation

* src/lxc_conf.c (lxcLoadDriverConfig): Mark a diagnostic.
* src/lxc_driver.c (lxcDomainStart): Likewise.
* po/POTFILES.in: Add src/lxc_conf.c.
* Makefile.maint (msg_gen_function): Add virReportErrorHelper
and lxcError.

16 years agoalways compile iptables.c
Jim Meyering [Fri, 7 Nov 2008 16:43:23 +0000 (16:43 +0000)]
always compile iptables.c

Avoid a build error when configuring --without-xen --without-qemu.
* src/iptables.c [WITH_QEMU]: Don't #ifdef-out.
* src/iptables.h [WITH_QEMU]: Don't #ifdef-out.
* src/util.c (virRun) [__MINGW32__]: Define a stub that always fails.

16 years agoadd new logging module, and move existing definitions there
Daniel Veillard [Thu, 6 Nov 2008 16:36:07 +0000 (16:36 +0000)]
add new logging module, and move existing definitions there
* src/logging.c src/logging.h proxy/Makefile.am proxy/libvirt_proxy.c
  src/Makefile.am src/cgroup.c src/datatypes.c src/domain_event.c
  src/internal.h src/libvirt.c src/lxc_container.c src/lxc_controller.c
  src/lxc_driver.c src/proxy_internal.c src/qemu_driver.c
  src/remote_internal.c src/storage_backend_disk.c src/util.c
  src/veth.c src/xen_internal.c src/xen_unified.c src/xend_internal.c:
  add new logging module, and move existing definitions there
Daniel

16 years agoLog stdout and stderr in virRun
Cole Robinson [Wed, 5 Nov 2008 18:57:42 +0000 (18:57 +0000)]
Log stdout and stderr in virRun

16 years agoLog the argv passed to virExec and virRun
Cole Robinson [Wed, 5 Nov 2008 18:41:07 +0000 (18:41 +0000)]
Log the argv passed to virExec and virRun

16 years agoMove local argvToString to virArgvToString in util.
Cole Robinson [Wed, 5 Nov 2008 18:22:10 +0000 (18:22 +0000)]
Move local argvToString to virArgvToString in util.

16 years agoplug two leaks and fix a diagnostic
Jim Meyering [Wed, 5 Nov 2008 14:24:21 +0000 (14:24 +0000)]
plug two leaks and fix a diagnostic

* src/qemu_conf.c (qemudLoadDriverConfig): Don't leak ->vncListen.
Fix an erroneous copy-and-pasted diagnostic.
* src/qemu_driver.c (qemudShutdown): Don't leak another ->vncListen.

16 years agoCall vgscan before attempting to scan logical volumes. This makes sure we've
Chris Lalancette [Wed, 5 Nov 2008 11:41:43 +0000 (11:41 +0000)]
Call vgscan before attempting to scan logical volumes.  This makes sure we've
"touched" any logical volumes, so they appear in the subsequent "pvs" call.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoMove WITH_XXX driver feature flags into config.h instead of direct compiler/linker...
Daniel P. Berrange [Tue, 4 Nov 2008 23:37:23 +0000 (23:37 +0000)]
Move WITH_XXX driver feature flags into config.h instead of direct compiler/linker args

16 years agoMove domain events helpers into dedicated file
Daniel P. Berrange [Tue, 4 Nov 2008 23:33:57 +0000 (23:33 +0000)]
Move domain events helpers into dedicated file