]>
xenbits.xensource.com Git - libvirt.git/log
Daniel P. Berrange [Wed, 20 Feb 2008 15:45:59 +0000 (15:45 +0000)]
Added directory/filesystem/netfs based storage pool backend
Daniel P. Berrange [Wed, 20 Feb 2008 15:45:33 +0000 (15:45 +0000)]
Added logical volume storage pool driver
Daniel P. Berrange [Wed, 20 Feb 2008 15:42:30 +0000 (15:42 +0000)]
Added directory/filesystem/netfs based storage pool backend
Daniel P. Berrange [Wed, 20 Feb 2008 15:38:29 +0000 (15:38 +0000)]
Added storage backend helper APIs
Daniel P. Berrange [Wed, 20 Feb 2008 15:34:52 +0000 (15:34 +0000)]
Added main internal storage driver impl
Daniel P. Berrange [Wed, 20 Feb 2008 15:29:13 +0000 (15:29 +0000)]
Added convenience virsh command for creating pools/volumes without XML
Daniel P. Berrange [Wed, 20 Feb 2008 15:27:08 +0000 (15:27 +0000)]
Added virsh commands for storage management
Daniel P. Berrange [Wed, 20 Feb 2008 15:26:22 +0000 (15:26 +0000)]
Added python binding for storage APIs
Daniel P. Berrange [Wed, 20 Feb 2008 15:23:36 +0000 (15:23 +0000)]
Add storage APIs to remote driver
Daniel P. Berrange [Wed, 20 Feb 2008 15:22:35 +0000 (15:22 +0000)]
Add remote daemon support for storage APIs
Daniel P. Berrange [Wed, 20 Feb 2008 15:20:44 +0000 (15:20 +0000)]
Regenerate docs to include storage APIs
Daniel P. Berrange [Wed, 20 Feb 2008 15:06:53 +0000 (15:06 +0000)]
Internal driver API for storage management
Daniel P. Berrange [Wed, 20 Feb 2008 14:57:39 +0000 (14:57 +0000)]
Add public API for storage management
Jim Meyering [Wed, 13 Feb 2008 21:52:19 +0000 (21:52 +0000)]
Pull useless-if-before-free from gnulib, and update.
* bootstrap (gnulib_tool): Add useless-if-before-free to
the list of modules.
* build-aux/useless-if-before-free: Update from gnulib.
* gnulib/lib/vasnprintf.c: Work around a bug in HPUX 10.20.
* gnulib/m4/vasnprintf.m4: Likewise.
Daniel P. Berrange [Tue, 12 Feb 2008 14:45:17 +0000 (14:45 +0000)]
Ignore ChangeLog/NEWS file for whitespace checks
Daniel Veillard [Mon, 11 Feb 2008 16:08:11 +0000 (16:08 +0000)]
Network doc example fixes
* docs/libvir.html docs/format.html: fixes the examples on the
section about ethernet bridging, as raised by Maxwell Bottiger,
fixes bug #430790
Daniel
Mark McLoughlin [Fri, 8 Feb 2008 09:15:16 +0000 (09:15 +0000)]
Fix gcc-4.3.0 "inlining failed" warning.
* src/internal.h: move xstrol() variants from here ...
* src/util.[ch]: ... to here and rename to virStrToLong()
* src/libvirt_sym.version: export __virStrToLong_i() for
virsh and qemud.
* src/nodeinfo.c, src/stats_linux.c, src/virsh.c,
src/xend_internal.c, qemud/qemud.c: replace xstrtol()
calls with virStrToLong()
* src/nodeinfo.h: don't include internal.h, which was only
needed for xstrtol(), but instead include libvirt.h which
is suffificient for the declarations in the header.
Jim Meyering [Thu, 7 Feb 2008 19:20:36 +0000 (19:20 +0000)]
Enable another syntax-check rule.
* Makefile.cfg (local-checks-to-skip): Remove sc_no_have_config_h.
* qemud/mdns.c: Remove "#ifdef HAVE_CONFIG_H".
* Makefile.maint (sc_no_have_config_h): Tighten up regexp,
so that the above mention of "HAVE_CONFIG_H" doesn't match.
* .x-sc_no_have_config_h: New file, to exempt gnulib/ straggler.
Jim Meyering [Thu, 7 Feb 2008 19:19:45 +0000 (19:19 +0000)]
autobuild.sh: Run "make syntax-check", so the autobuilder does this.
Daniel Veillard [Thu, 7 Feb 2008 17:03:17 +0000 (17:03 +0000)]
missing ')'
* qemud/remote.c: fix a missing ')' introduced earlier
Daniel
Daniel Veillard [Thu, 7 Feb 2008 16:56:01 +0000 (16:56 +0000)]
virHashRemoveSet bugfixes
* src/hash.c: fix a couple of problems in virHashRemoveSet based
on Hiroyuki Kaguchi patch and explanations.
Daniel
Jim Meyering [Thu, 7 Feb 2008 16:50:17 +0000 (16:50 +0000)]
Mark all qemudLog diagnostics for translation.
* po/POTFILES.in: Add names of many new files.
* Makefile.maint (err_func_re): Add qemudLog.
Mark diagnostics with _(...). Split some long lines.
* qemud/qemud.c (remoteCheckCertFile, remoteInitializeGnuTLS):
(qemudDispatchSignalEvent, qemudSetCloseExec, qemudSetNonBlock):
(qemudWritePidFile, qemudListenUnix, remoteMakeSockets):
(remoteListenTCP, qemudInitPaths, qemudInitialize):
(qemudNetworkInit, remoteInitializeTLSSession, remoteCheckDN):
(remoteCheckCertificate, remoteCheckAccess, qemudDispatchServer):
(qemudClientReadBuf, qemudDispatchClientRead):
(qemudClientWriteBuf, qemudDispatchClientWrite, qemudOneLoop):
(remoteConfigGetStringList, checkType, GET_CONF_STR):
(remoteConfigGetAuth, remoteReadConfigFile, main):
* qemud/remote.c (remoteDispatchAuthSaslInit, remoteSASLCheckSSF):
(remoteSASLCheckAccess, remoteDispatchAuthSaslStart):
(remoteDispatchAuthSaslStep, remoteDispatchAuthSaslInit):
(remoteDispatchAuthSaslStart, remoteDispatchAuthSaslStep):
(qemudGetSocketIdentity, remoteDispatchAuthPolkit):
* src/iptables.c (notifyRulesUpdated, MAX_FILE_LEN, iptRulesSave):
(iptRulesReload):
* src/qemu_conf.c (qemudExtractVersionInfo, qemudLoadConfig):
(qemudLoadNetworkConfig, qemudScanConfigDir):
* src/qemu_driver.c (qemudSetCloseExec, qemudSetNonBlock):
(qemudAutostartConfigs, qemudStartup, qemudReload):
(qemudWaitForMonitor, qemudStartVMDaemon, qemudVMData):
(qemudShutdownVMDaemon, qemudStartNetworkDaemon):
(qemudShutdownNetworkDaemon, qemudMonitorCommand):
(qemudDomainUndefine, qemudNetworkUndefine):
* src/uuid.c (virUUIDGenerate):
* src/xm_internal.c (xenXMAttachInterface):
Jim Meyering [Thu, 7 Feb 2008 16:49:29 +0000 (16:49 +0000)]
Remove more useless if tests before "free"-like functions.
* build-aux/useless-if-before-free: Rename from ...
* build-aux/find-unnecessary-if-before-free: ... this. Remove file.
Also changed it so that new names are no longer hard-coded in the
script. Instead, they're supplied via options:
* Makefile.cfg (useless_free_options): Define.
Add xmlXPathFreeObject to the list of free-like functions it detects.
* Makefile.maint (sc_avoid_if_before_free): Reflect script renaming.
* .x-sc_avoid_if_before_free: Likewise.
* src/openvz_conf.c (openvzParseXML): Remove useless "if"-before-free.
* src/qemu_conf.c (qemudParseXML, qemudParseNetworkXML): Likewise.
* src/virsh.c (cmdVNCDisplay, cmdTTYConsole, cmdDetachInterface):
(cmdDetachDisk): Likewise.
* src/xm_internal.c (xenXMConfigSetIntFromXPath): Likewise.
(xenXMConfigSetStringFromXPath, xenXMParseXMLToConfig): Likewise.
(xenXMDomainAttachDevice, xenXMAttachDisk, xenXMAttachInterface):
(xenXMDomainDetachDevice): Likewise.
* src/xml.c (virXPathString): Likewise.
* tests/xmlrpctest.c (checkRequestValue): Likewise.
Jim Meyering [Thu, 7 Feb 2008 12:34:19 +0000 (12:34 +0000)]
Remove trailing blanks
Mark McLoughlin [Thu, 7 Feb 2008 10:43:14 +0000 (10:43 +0000)]
* src/xen_internal.c: Don't crash if there's no /sys/hypervisor/capabilities
Mark McLoughlin [Thu, 7 Feb 2008 10:17:24 +0000 (10:17 +0000)]
src/iptables.c: Create directory for saving iptables rules
Mark McLoughlin [Thu, 7 Feb 2008 10:14:43 +0000 (10:14 +0000)]
src/xm_internal.[ch]: Move static function prototype from header
Daniel Veillard [Thu, 7 Feb 2008 09:49:13 +0000 (09:49 +0000)]
Python bindings return values fixes
* python/libvir.c: apply patch from Cole Robinson to provide
return values for manulally written python bindings.
Daniel
Daniel Veillard [Thu, 7 Feb 2008 09:37:41 +0000 (09:37 +0000)]
Oops forgot >>>>, Daniel
Daniel Veillard [Thu, 7 Feb 2008 09:37:10 +0000 (09:37 +0000)]
* src/libvirt.c: fix bug in xenUnifiedDomainSuspend() patch provided
by Marcus Meissner
Daniel
Daniel Veillard [Wed, 6 Feb 2008 17:57:10 +0000 (17:57 +0000)]
add/change/delete a Disk/NIC of an inactive domains
* src/xm_internal.[ch]: applied patch from Shigeki Sakamoto to
add/change/delete a Disk/NIC of an inactive domains
Daniel
Daniel Veillard [Wed, 6 Feb 2008 16:24:28 +0000 (16:24 +0000)]
QEmu config error handling fixes
* src/qemu_conf.c: applied 2 patches from Guido Guenther to avoid
crashes when reading the config file
Daniel
Jim Meyering [Tue, 5 Feb 2008 22:07:31 +0000 (22:07 +0000)]
Fix new "make distcheck" failures.
* src/xml.c (virDomainParseXMLOSDescHVM): Mark a diagnostic.
Jim Meyering [Tue, 5 Feb 2008 19:27:37 +0000 (19:27 +0000)]
Remove all trailing blanks; turn on the rule to detect them.
* Makefile.cfg (local-checks-to-skip): Remove sc_trailing_blank.
* .x-sc_trailing_blank: New file, to exempt the few binary files.
Daniel P. Berrange [Tue, 5 Feb 2008 16:29:42 +0000 (16:29 +0000)]
Ignore built test files
Daniel P. Berrange [Tue, 5 Feb 2008 16:21:25 +0000 (16:21 +0000)]
Added support for booting off kenrel+initrd with HVM guests
Jim Meyering [Tue, 5 Feb 2008 14:22:28 +0000 (14:22 +0000)]
Eliminate all uses of virBufferAdd with string literals.
* Makefile.maint (sc_prohibit_virBufferAdd_with_string_literal):
New rule.
* src/buf.h (virBufferAddLit): Define.
* src/conf.c (virConfSaveValue): Use virBufferAddLit, in place
of virBufferAdd everywhere possible.
(virConfSaveEntry): Likewise.
* src/qemu_conf.c (qemudGenerateXML, qemudGenerateNetworkXML): Likewise.
* src/qemu_driver.c (qemudGetFeatures, qemudGetCapabilities): Likewise.
* src/test.c (testDomainDumpXML, testNetworkDumpXML): Likewise.
* src/xen_internal.c (xenHypervisorMakeCapabilitiesXML): Likewise.
* src/xend_internal.c (xend_parse_sexp_desc_os): Likewise.
(xend_parse_sexp_desc, sexpr_to_xend_topology_xml): Likewise.
* src/xm_internal.c (xenXMDomainFormatXML, xenXMDomainPinVcpu): Likewise.
* src/xml.c (virSaveCpuSet, virParseXenCpuTopology): Likewise.
(virDomainParseXMLGraphicsDescImage): Likewise.
(virDomainParseXMLGraphicsDescVFB, virDomainParseXMLOSDescHVM): Likewise.
(virDomainParseXMLOSDescPV, virDomainParseXMLDiskDesc): Likewise.
(virDomainParseXMLIfDesc, virDomainParseXMLDesc): Likewise.
Jim Meyering [Mon, 4 Feb 2008 19:31:30 +0000 (19:31 +0000)]
Enable more checks for unmarked messages; fix violators.
* Makefile.maint (sc_unmarked_diagnostics): Check for more functions.
* src/conf.c (virConfParseValue): Remove trailing space in diagnostic.
* src/libvirt.c (do_open, virDomainMigrate): Mark diagnostics.
* src/xend_internal.c (do_connect, xenDaemonDomainDumpXMLByID): Likewise.
(xenDaemonDomainDumpXMLByName, xenDaemonCreateLinux): Likewise.
(xenDaemonDomainMigratePerform, xenDaemonDomainDefineXML): Likewise.
* src/xml.c (virXPathString, virXPathNumber, virXPathLong): Likewise.
(virXPathBoolean, virXPathNode, virXPathNodeSet): Likewise.
(virDomainParseXMLOSDescHVM): Likewise.
* src/xmlrpc.c (xmlRpcValueNew): Likewise.
(xmlRpcValueUnmarshalDictElement): Likewise.
Jim Meyering [Mon, 4 Feb 2008 14:58:47 +0000 (14:58 +0000)]
Mark a string for translation.
* src/virsh.c: Add a "%s" and wrap with _(...).
Jim Meyering [Mon, 4 Feb 2008 14:58:05 +0000 (14:58 +0000)]
Enable the sc_unmarked_diagnostics test and correct all violations
involving the "error" function.
* Makefile.cfg (local-checks-to-skip): Remove from skip list.
* src/remote_internal.c: Mark translatable strings.
Jim Meyering [Fri, 1 Feb 2008 19:47:07 +0000 (19:47 +0000)]
Pull vc-list-files from gnulib, and update.
* bootstrap (gnulib_tool): Add the vc-list-files module.
Jim Meyering [Thu, 31 Jan 2008 21:49:47 +0000 (21:49 +0000)]
Avoid compilation failure when building --without-xen.
* tests/statstest.c (testDevice) [!WITH_XEN]: #ifdef-out.
(main) [!WITH_XEN]: #ifdef-out the body.
Committer: Jim Meyering <meyering@redhat.com>
Author: Guido Guenther <agx@sigxcpu.org>
Jim Meyering [Wed, 30 Jan 2008 19:58:59 +0000 (19:58 +0000)]
Avoid virsh leaks due to missing virDomainFree(dom) calls
* src/virsh.c (cmdDomuuid): Add missing virDomainFree call.
(cmdAttachDevice): Likewise.
(cmdDetachDevice): Likewise.
Jim Meyering [Wed, 30 Jan 2008 19:57:54 +0000 (19:57 +0000)]
src/virsh.c (cmdCapabilities): Plug a small leak.
Jim Meyering [Wed, 30 Jan 2008 19:57:13 +0000 (19:57 +0000)]
src/test.c (testLoadDomain): Avoid leaks upon failure.
Jim Meyering [Wed, 30 Jan 2008 19:54:29 +0000 (19:54 +0000)]
Avoid used-uninitialized errors in test driver.
* src/test.c (testOpenFromFile): Initialize "privconn".
Jim Meyering [Wed, 30 Jan 2008 19:53:10 +0000 (19:53 +0000)]
src/libvirt.c (do_open): Avoid double-free upon failure.
Jim Meyering [Wed, 30 Jan 2008 19:52:16 +0000 (19:52 +0000)]
Avoid segfault upon malloc failure, and plug a leak.
* src/test.c (testDomainSave): Detect testDomainDumpXML failure. Free "xml".
Jim Meyering [Wed, 30 Jan 2008 19:50:14 +0000 (19:50 +0000)]
Plug test-related leaks.
* src/test.c (testLoadNetwork): Free forwardDev.
(testLoadDomain): Free ctxt.
(testLoadNetwork): Likewise.
(testOpenFromFile): Likewise.
Daniel P. Berrange [Wed, 30 Jan 2008 18:21:13 +0000 (18:21 +0000)]
Remove double mutex lock()
Daniel P. Berrange [Wed, 30 Jan 2008 16:38:18 +0000 (16:38 +0000)]
Fix XML generation for Xen USB devices
Jim Meyering [Wed, 30 Jan 2008 06:55:56 +0000 (06:55 +0000)]
Arrange for "make syntax-check" to pass.
* .x-sc_avoid_if_before_free: Exempt ChangeLog.
* tests/statstest.c: Include <config.h>, not "config.h".
Daniel P. Berrange [Tue, 29 Jan 2008 18:36:00 +0000 (18:36 +0000)]
Fix device name -> number conversion for block stats
Jim Meyering [Tue, 29 Jan 2008 18:23:43 +0000 (18:23 +0000)]
Also detect and remove unnecessary if-before-xmlXPathFreeContext.
* build-aux/find-unnecessary-if-before-free: Update regexp.
* src/openvz_conf.c: Remove unnecessary "if (P)"-before xmlXPathFreeContext.
* src/qemu_conf.c: Likewise.
* src/virsh.c: Likewise.
* src/xm_internal.c: Likewise.
* src/xml.c: Likewise.
* tests/xmlrpctest.c: Likewise.
Jim Meyering [Tue, 29 Jan 2008 18:21:00 +0000 (18:21 +0000)]
Enable two more tests.
* Makefile.cfg (local-checks-to-skip)
[sc_cast_of_x_alloc_return_value, sc_cast_of_argument_to_free]: Enable.
Jim Meyering [Tue, 29 Jan 2008 18:20:25 +0000 (18:20 +0000)]
Enable the <assert.h>-checking test; fix violations.
* Makefile.cfg (local-checks-to-skip)
[sc_prohibit_assert_without_use]: Enable.
* qemud/mdns.c: Don't include <assert.h>; no uses of assert here.
* qemud/qemud.c: Likewise.
* qemud/remote.c: Likewise.
Jim Meyering [Tue, 29 Jan 2008 18:19:46 +0000 (18:19 +0000)]
Enable the po-check test; fix violations.
* Makefile.cfg (local-checks-to-skip) [po-check]: Enable.
* po/POTFILES.in: Add three file names. Sort.
Jim Meyering [Tue, 29 Jan 2008 18:17:47 +0000 (18:17 +0000)]
Update from gnulib
* lib/poll.c: Update.
* lib/string.in.h: Update.
* m4/string_h.m4: Update.
* tests/test-getaddrinfo.c: Update.
* lib/Makefile.am: Regenerate.
Jim Meyering [Tue, 29 Jan 2008 18:15:54 +0000 (18:15 +0000)]
Enable the <config.h>-requiring test; fix violations
Use <config.h>, not "config.h", per autoconf documentation.
* Makefile.cfg (local-checks-to-skip) [sc_require_config_h]: Enable.
* .x-sc_require_config_h: New file, to list exempted files.
* Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h.
Jim Meyering [Tue, 29 Jan 2008 17:43:28 +0000 (17:43 +0000)]
Enable the duplicate-"the" test; fix violations
* Makefile.cfg (local-checks-to-skip) [sc_the_the]: Enable.
* docs/virsh.pod: Remove a duplicate "the".
* libvirt.spec.in: Likewise.
* virsh.1: Likewise.
Jim Meyering [Tue, 29 Jan 2008 17:42:39 +0000 (17:42 +0000)]
Add framework for code style- and syntax-checking rules.
Almost all tests are initially disabled via the list in Makefile.cfg.
* Makefile.am (EXTRA_DIST): Add .x-sc_avoid_if_before_free.
Omit names of files that automake includes automatically.
* .x-sc_avoid_if_before_free: New file.
* build-aux/vc-list-files: Likewise.
* build-aux/find-unnecessary-if-before-free: Likewise.
* GNUmakefile, Makefile.cfg, Makefile.maint: New files.
Jim Meyering [Tue, 29 Jan 2008 17:41:07 +0000 (17:41 +0000)]
Given code like if (foo) free (foo); remove the useless "if (foo) " part.
Likewise, given if (foo != NULL) free (foo); remove the useless "if" test.
* proxy/libvirt_proxy.c: Remove unnecessary "if" test before free.
* python/generator.py: Likewise.
* qemud/qemud.c: Likewise.
* src/buf.c: Likewise.
* src/conf.c: Likewise.
* src/hash.c: Likewise.
* src/iptables.c: Likewise.
* src/libvirt.c: Likewise.
* src/openvz_conf.c: Likewise.
* src/qemu_conf.c: Likewise.
* src/qemu_driver.c: Likewise.
* src/remote_internal.c: Likewise.
* src/test.c: Likewise.
* src/virsh.c: Likewise.
* src/virterror.c: Likewise.
* src/xen_internal.c: Likewise.
* src/xen_unified.c: Likewise.
* src/xend_internal.c: Likewise.
* src/xm_internal.c: Likewise.
* src/xml.c: Likewise.
* src/xmlrpc.c: Likewise.
* src/xs_internal.c: Likewise.
* tests/testutils.c: Likewise.
* tests/xencapstest.c: Likewise.
* tests/xmconfigtest.c: Likewise.
Richard W.M. Jones [Fri, 25 Jan 2008 12:03:05 +0000 (12:03 +0000)]
Clarify virsh documentation.
* docs/virsh.pod: Clarify virsh documentation on when you can
set memory and vCPUs.
Daniel Veillard [Fri, 25 Jan 2008 09:47:51 +0000 (09:47 +0000)]
Fix VIR_DOMAIN_NONE into VIR_DOMAIN_NOSTATE
* src/xen_internal.c: fix an erronous use of VIR_DOMAIN_NONE instead
of VIR_DOMAIN_NOSTATE (both defined as 0, no regression)
Daniel
Daniel Veillard [Thu, 24 Jan 2008 17:09:56 +0000 (17:09 +0000)]
* src/libvirt.c: Jay Gagnon pointed out that virDomainGetXMLDesc
was failing with a non-zero flag value
Daniel
Richard W.M. Jones [Thu, 24 Jan 2008 10:15:13 +0000 (10:15 +0000)]
Correct typos in the documentation (Atsushi SAKAI)
* README, libvirt.spec.in, docs/devhelp/html.xsl,
docs/devhelp/index.html: Correct typos in the documentation.
Daniel P. Berrange [Wed, 23 Jan 2008 19:37:10 +0000 (19:37 +0000)]
Fix enablement of SASL
Richard W.M. Jones [Wed, 23 Jan 2008 14:54:41 +0000 (14:54 +0000)]
Portability improvements for Mac OS X.
* configure.in: Use PortableXDR if available.
* qemud/internal.h: Use "socketcompat.h".
* qemud/qemud.c: Use <signal.h>.
* src/sexpr.c: Use <stdlib.h> instead of <malloc.h>.
* src/socketcompat.h: Include <sys/un.h> for Mac OS X.
Richard W.M. Jones [Wed, 23 Jan 2008 14:50:14 +0000 (14:50 +0000)]
Remove DOS line-endings.
* src/socketcompat.h: Remove DOS line-endings in this file.
Daniel P. Berrange [Tue, 22 Jan 2008 21:30:05 +0000 (21:30 +0000)]
Fix compat for old pkg-config and gnutls
Jim Meyering [Mon, 21 Jan 2008 17:06:47 +0000 (17:06 +0000)]
Avoid "may be used uninitialized" warning.
* tests/xmconfigtest.c (testCompareParseXML): Initialize "old_priv".
Daniel P. Berrange [Mon, 21 Jan 2008 16:29:10 +0000 (16:29 +0000)]
Fix & refactor ref counting cleanup code
Daniel P. Berrange [Mon, 21 Jan 2008 15:55:53 +0000 (15:55 +0000)]
Make python generator fail build on any missing APIs
Daniel P. Berrange [Mon, 21 Jan 2008 15:41:15 +0000 (15:41 +0000)]
Add missing vcpu/schedular APIs to python binding
Daniel P. Berrange [Mon, 21 Jan 2008 15:27:14 +0000 (15:27 +0000)]
Use virFileReadAll in virsh.c
Daniel P. Berrange [Mon, 21 Jan 2008 15:19:46 +0000 (15:19 +0000)]
Remove no-op networking APIs from openvz driver
Jim Meyering [Mon, 21 Jan 2008 14:22:15 +0000 (14:22 +0000)]
Adjust sexpr-related interfaces to be const-correct.
* src/sexpr.c (sexpr_cons, append, sexpr_append, sexpr2string)
(sexpr_lookup_key, sexpr_lookup, sexpr_node, sexpr_fmt_node):
Add "const" attribute where appropriate.
* src/xend_internal.c (sexpr_int, sexpr_float, sexpr_u64)
(sexpr_uuid, sexpr_to_xend_domain_info, sexpr_to_xend_node_info)
(sexpr_to_xend_topology_xml, sexpr_to_domain): Likewise.
* src/sexpr.h: Adjust prototypes.
Jim Meyering [Mon, 21 Jan 2008 14:09:51 +0000 (14:09 +0000)]
Don't access line[-1] for a zero-length "line" from fgets.
A NUL byte at beginning of input, or just after a newline
would provoke an invalid buf[-1] access (possible segfault).
* src/libvirt.c (virConnectAuthCallbackDefault):
Daniel Veillard [Mon, 21 Jan 2008 08:27:12 +0000 (08:27 +0000)]
Preserve vif order
* src/xml-internal.c: apply patch from Hiroyuki Kaguchi to
preserve the vif list order.
Daniel
Daniel Veillard [Mon, 21 Jan 2008 08:08:33 +0000 (08:08 +0000)]
Remove docs/API*.html
* docs/API* docs/api.xsl docs/site.xsl docs/Makefile.am: remove the
generation of the API*.html files as it's not really useful here
Daniel
Daniel P. Berrange [Sun, 20 Jan 2008 16:11:25 +0000 (16:11 +0000)]
Added xstrtol_ll and xstrtol_ull convenience functions
Daniel P. Berrange [Sun, 20 Jan 2008 15:56:49 +0000 (15:56 +0000)]
Fix nodeinfo compat for Xen 3.2.0
Daniel P. Berrange [Sat, 19 Jan 2008 18:36:01 +0000 (18:36 +0000)]
Enable debug by default, but only if LIBVIRT_DEBUG=1. Use generic macro for debug output
Jim Meyering [Thu, 17 Jan 2008 22:14:57 +0000 (22:14 +0000)]
Handle PyTuple_New's malloc failure.
* python/libvir.c (libvirt_virDomainBlockStats): Handle a NULL
return from PyTuple_New.
(libvirt_virDomainInterfaceStats, libvirt_virGetLastError): Likewise.
(libvirt_virConnGetLastError): Likewise.
Jim Meyering [Thu, 17 Jan 2008 22:13:55 +0000 (22:13 +0000)]
Factor out some duplication.
* python/libvir.c (VIR_PY_NONE): New macro, to encapsulate
a common two-statement sequence.
Replace all such 2-stmt sequences.
Jim Meyering [Wed, 16 Jan 2008 17:13:23 +0000 (17:13 +0000)]
Avoid format string warnings.
* src/virsh.c: Add "%s" where needed.
* src/proxy_internal.c: Likewise.
Jim Meyering [Tue, 15 Jan 2008 15:27:31 +0000 (15:27 +0000)]
docs/examples/examples.xml: Regenerate, now that *.c file names are sorted.
Daniel P. Berrange [Tue, 15 Jan 2008 15:18:33 +0000 (15:18 +0000)]
Support VNC keymap option with QEMU (Daniel Hokka Zakrisson)
Daniel P. Berrange [Tue, 15 Jan 2008 14:23:52 +0000 (14:23 +0000)]
Fix off-by-one in SSH argv checking. Fix format string warning
Jim Meyering [Mon, 14 Jan 2008 14:07:25 +0000 (14:07 +0000)]
Update from gnulib.
Jim Meyering [Mon, 14 Jan 2008 14:05:25 +0000 (14:05 +0000)]
Clean up the global name space.
* src/qemu_conf.c: Add "static" and "const" attributes to some globals.
* src/qemu_conf.h: Update a declaration.
* src/qemu_driver.c (qemud_driver): Declare static.
Author: Jim Meyering <meyering@redhat.com>
Jim Meyering [Mon, 14 Jan 2008 14:04:33 +0000 (14:04 +0000)]
Clean up global name space in examples and tests.
* docs/examples/suspend.c: Declare global "conn" to be static.
* tests/qemuxml2argvtest.c: Declare global "driver" to be static.
* tests/qemuxml2xmltest.c: Likewise.
Author: Jim Meyering <meyering@redhat.com>
Daniel P. Berrange [Mon, 14 Jan 2008 04:05:23 +0000 (04:05 +0000)]
Re-factor auth code to make clearer (Jim Meyering)
Daniel P. Berrange [Mon, 14 Jan 2008 04:00:34 +0000 (04:00 +0000)]
Fix crash when no auth callback
Mark McLoughlin [Thu, 10 Jan 2008 14:41:39 +0000 (14:41 +0000)]
fix an unused variable warning
Mark McLoughlin [Thu, 10 Jan 2008 14:01:00 +0000 (14:01 +0000)]
add iptablesSaveRules(), and don't save the rules to disk
and run lokkit each time a new rule is added.
Mark McLoughlin [Thu, 10 Jan 2008 13:58:59 +0000 (13:58 +0000)]
now that we only use built-in iptables chains, we don't
need to add or delete them
Mark McLoughlin [Thu, 10 Jan 2008 13:57:48 +0000 (13:57 +0000)]
Like --with-iptables-prefix, --with-iptables-dir is no
longer useful, so let's remove it.
Mark McLoughlin [Thu, 10 Jan 2008 13:56:22 +0000 (13:56 +0000)]
--with-iptables-prefix was added to integrate with
a proposed system for letting iptables know how to
reload our rules. The proposed system wasn't accepted
so, although there might be some other theoretical
use for this, let's just remove it.
Mark McLoughlin [Thu, 10 Jan 2008 13:54:02 +0000 (13:54 +0000)]
Add support for integrating our iptables support with Fedora's
iptables configuration using the lokkit --custom-rules command.
Basically, we write out our rules to /var/lib/libvirt/iptables
and run lokkit --custom-rules so that if e.g. iptables is
restarted or the user edits their firewall configuration, then
libvirt's rules get reloaded.