aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.4v0.4.4LIBVIRT_0_4_4Daniel Veillard2008-06-2585-2040/+2151
| | | | | | | | | release * src/xm_internal.c: fix xm driver serialization escapes * tests/xmconfigtest.c tests/xmconfigdata/test-escape-paths.cfg tests/xmconfigdata/test-escape-paths.xml: add test for previous problem Daniel
* * po/*: updated a couple of localizations and regenerated theDaniel Veillard2008-06-2576-7270/+9805
| | | | | files Daniel
* Added helpers for dealing with enumerationsDaniel P. Berrange2008-06-243-0/+55
|
* Fix const-ness of virStorageBackendRunProgRegex()Daniel P. Berrange2008-06-243-2/+7
|
* fix a couple of List functions for max = 0 issuesDaniel Veillard2008-06-193-3/+17
| | | | | | * src/xen_internal.c src/xend_internal.c: fix a couple of issues for List functions where max given is 0 Daniel
* virsh fails to read files larger than BUFSIZ bytesJim Meyering2008-06-194-2/+53
| | | | | | | * src/util.c (fread_file_lim): Use VIR_REALLOC_N, not VIR_ALLOC_N. Bug introduced in 895d0fdf5bef358fafb91c672609190b3088097b. * tests/Makefile.am (test_scripts): Add read-bufsiz. * tests/read-bufsiz: New test for the above.
* Update the changelog to go along with my commits for the last week.Chris Lalancette2008-06-191-0/+32
|
* For 0.4.3, danpb's new memory management scheme went into libvirt. This isChris Lalancette2008-06-191-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | fine, except that is subtly alters the semantics of malloc(), calloc(), and realloc(). In particular, if you say: foo = malloc(0); glibc will happily return a non-NULL pointer to you. However, with the new memory management stuff, if you say: foo = VIR_ALLOC(0); you will actually get a NULL pointer back. Personally, I think this is a dangerous deviation from malloc() semantics that everyone is used to, and is indeed causing problems with the remote driver. The short of it is that the remote driver allocates memory on behalf of the remote side using VIR_ALLOC_N, and this call is returning NULL so that the NULL checks elsewhere in the code fire and return failure. The attached patch fixes this situation by removing the 0 checks from the memory allocation paths, and just lets them fall through to the normal malloc(), calloc(), or realloc() routines, restoring old semantics. Signed-off-by: Chris Lalancette <clalance@redhat.com>
* When doing the conversion to danpb's new memory API, a small bug wasChris Lalancette2008-06-191-1/+1
| | | | | | | | | | | | | | | | | | | introduced into the qemudNetworkIfaceConnect() function. In particular, there is a call: if (VIR_ALLOC_N(vm->tapfds, vm->ntapfds+2) < 0) goto no_memory; However, the tapfds structure is used to track *all* of the tap fds, and is called once for each network that is being attached to the domain. VIR_ALLOC_N maps to calloc(). So the first network would work just fine, but if you had more than one network, subsequent calls to this function would blow away the stored fd's that were already there and fill them all in with zeros. This causes multiple problems, from the qemu domains not starting properly to improper cleanup on shutdown. The attached patch just changes the VIR_ALLOC_N() to a VIR_REALLOC_N(), and everything is happy again. Signed-off-by: Chris Lalancette <clalance@redhat.com>
* remove trailing white spaceJim Meyering2008-06-171-2/+2
|
* This rather large patch rewrites the virStorageBackendISCSIFindLUNs() functionChris Lalancette2008-06-171-124/+248
| | | | | | | | | | | | | | to only rely on sysfs for finding LUNs, given a session number. Along the way, it also fixes the bug where we wouldn't find LUNs for older kernels (with the block:sda format), and also fixes a race condition where we could try to find the LUN before udev has finished connecting it. This patch fixes a few different bugs: 1) We weren't finding LUNs on pre 2.6.24 kernels 2) libvirtd sysfs scanning was racing with udev, so we didn't always see LUNs 3) We weren't showing the 0'th LUN, although that can be a valid LUN Signed-off-by: Chris Lalancette <clalance@redhat.com>
* A small bugfix; we only need to call the iscsiadm sendtarget command when we areChris Lalancette2008-06-171-8/+8
| | | | | | | first logging in; we don't need to do it for logout. Move the sendtarget command into the Login() function. Signed-off-by: Chris Lalancette <clalance@redhat.com>
* Older versions of iscsiadm didn't support the "-P 0" flag to the "iscsiadmChris Lalancette2008-06-171-2/+2
| | | | | | | --mode session" command. However, just running "iscsiadm --mode session" seems to work on all version of iscsiadm commands back to FC-6, so just use that. Signed-off-by: Chris Lalancette <clalance@redhat.com>
* In src/util.c, virLog is just a wrapper around fprintf(stderr). Make sure toChris Lalancette2008-06-171-12/+12
| | | | | | put line breaks at the end of lines that use virLog() (noticed during testing). Signed-off-by: Chris Lalancette <clalance@redhat.com>
* This patch changes things around so that virStorageBackendRunProgRegex() doesChris Lalancette2008-06-174-19/+45
| | | | | | | | | | | *not* virStorageReportError() if the fork()/exec() process it spawned returned a != 0 exit code. Rather, it returns the exitcode in this case, and it is up to the higher level to determine whether this is a fatal error or not. The use case for this change is in the iSCSI stuff; older versions of iscsiadm tools would return a failure when getting the session number, despite the command succeeding. Signed-off-by: Chris Lalancette <clalance@redhat.com>
* adding autogen.sh to EXTRA_DISTDaniel Veillard2008-06-132-1/+6
| | | | | * Makefile.am: adding autogen.sh to EXTRA_DIST Daniel
* * src/qemu_conf.c: patch from Kaitlin Rupert, dynamic devicesDaniel Veillard2008-06-133-1/+65
| | | | | for network should be defined in an 'interface' node not 'net' Daniel
* * configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.3Daniel Veillard2008-06-1281-55550/+63306
| | | | | release Daniel
* Fix misc compile warningsDaniel P. Berrange2008-06-125-7/+15
|
* Fix saving of iptables rulesDaniel P. Berrange2008-06-122-15/+18
|
* Deal with inactive virtual network in domain creationDaniel P. Berrange2008-06-122-2/+12
|
* Adding Kaitlin Rupert in the AUTHORS listDaniel Veillard2008-06-121-0/+1
| | | | Daniel
* * src/qemu_driver.c: patch from Kaitlin Rupert, changing vcpu orDaniel Veillard2008-06-122-3/+8
| | | | | memory of an active domain is a NO_SUPPORT not INTERNAL_ERROR Daniel
* po regenerationDaniel Veillard2008-06-1176-94759/+116100
| | | | | * po/*: update and regenerated Daniel
* Fix RPM buildDaniel P. Berrange2008-06-112-1/+5
|
* * python/libvir.py python/libvirt-python-api.xml: more pythonDaniel Veillard2008-06-113-1/+15
| | | | | cleanups by Cole Robinson Daniel
* * configure.in: patch from Cole Robinson to reactivate storageDaniel Veillard2008-06-102-0/+9
| | | | | support Daniel
* * python/generator.py python/libvir.c python/libvirt-python-api.xml:Daniel Veillard2008-06-104-2/+110
| | | | | Apply patch from Cole Robinson fixing UUIDString for python Daniel
* Pass syntax check for XM block devices over to XenDRichard W.M. Jones2008-06-103-7/+20
| | | | | | * src/xm_internal.c: Pass responsibility for checking syntax of XM block devices over the XenD (see also Xen cset 17617). (Hiroyuki Kaguchi).
* virDomainMemoryPeek APIRichard W.M. Jones2008-06-1021-5/+402
| | | | | | | | | | | | | | | | * include/libvirt/libvirt.h.in, src/libvirt.c, src/driver.h, src/libvirt_sym.version: New virDomainMemoryPeek API. * qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c: Support for remote. * src/qemu_driver.c: QEMU driver implementation of API. * src/test.c: Test driver (null) implementation of API. * docs/hvsupport.html.in: Document API. * libvirt.spec.in: New path /var/cache/libvirt for temporary storage of memory images. * qemud/libvirtd.init.in: Remove any old temp files in /var/cache/libvirt on restarts. * src/Makefile.am: make install creates /var/cache/libvirt. * configure.in: Detect mkdir -p.
* Mon Jun 9 15:42:34 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com>David L. Leskovec2008-06-092-4/+14
| | | | | | * src/lxc_driver.c: Make console element is output only. Always open new PTY when starting a container. Fix string overrun when storing console name in VM def struct
* Better error messages in xend driver.Richard W.M. Jones2008-06-092-17/+46
| | | | | * src/xend_internal.c: Change virXendError function to take varargs. Better error messages throughout.
* Switch over remaining driver code to use memory alloc apisDaniel P. Berrange2008-06-0625-424/+408
|
* Switch daemon over to use internal memory allocation APIsDaniel P. Berrange2008-06-068-169/+217
|
* virDomainBlockPeek QEMU and remote supportRichard W.M. Jones2008-06-0514-7/+259
| | | | | | | | | | | | | | | * qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c: Remote support. * qemud/remote_dispatch_localvars.h, qemud/remote_dispatch_proc_switch.h, qemud/remote_dispatch_prototypes.h, qemud/remote_protocol.c, qemud/remote_protocol.h: Generated files for remote support. * src/xen_unified.c, src/driver.h, src/libvirt.c: Small fix - pass flags around internally. * src/qemu_driver.c: Support for QEMU. * src/xend_internal.c: Remove redundant fstat call from Xen.
* virDomainBlockPeek callRichard W.M. Jones2008-06-0518-470/+826
| | | | | | | | | | | | | | * configure.in: Document AC_SYS_LARGEFILE. * docs/hvsupport.html.in: Document HV support for virDomainBlockPeek. * include/libvirt/libvirt.h.in, src/driver.h, src/libvirt.c, src/libvirt_sym.version: Add virDomainBlockPeek infrastructure. * src/qemu_driver.c, src/test.c: Null versions of this call. * src/xen_unified.c, src/xend_internal.c, src/xend_internal.h, src/xm_internal.c, src/xm_internal.h: Xen implementation. * tests/sexpr2xmldata/sexpr2xml-curmem.xml, tests/sexpr2xmldata/sexpr2xml-no-source-cdrom.xml: XML output has been reordered slightly in the Xen driver, but should be functionally the same.
* Fix a few issues related to restart of libvirtd with containers running.David L. Leskovec2008-06-054-2/+258
| | | | | | | | | | | | | | Mon May 12 23:32:21 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com> * src/lxc_driver.c: Add sanity of tty pid before kill() Ignore ECHILD errors during VM cleanup Call functions to store tty pid and cleanup tty pid file * src/lxc_conf.h: Add function to verify container process exists Add facilities to manage storing the tty forward process pid * src/lxc_conf.c: Add function to verify container process exists Call function to verify container process during config load Add facilities to manage storing the tty forward process pid Call function to load tty pid during load config
* * src/xm_internal.c: If vcpu cpuset attribute is invalidRichard W.M. Jones2008-06-032-12/+13
| | | | | then display an error instead of silently ignoring it (Hiroyuki Kaguchi).
* General tips for contributing patchesRichard W.M. Jones2008-06-022-1/+47
| | | | | * HACKING: Added section "general tips for contributing patches" to this file.
* Only run coverage tests if lcov is installedDaniel P. Berrange2008-05-292-1/+5
|
* Fix make distDaniel P. Berrange2008-05-292-1/+6
|
* Fix warning with OOM testing is disabledDaniel P. Berrange2008-05-292-3/+10
|
* Switch to using lcov for code coverage repotsDaniel P. Berrange2008-05-2910-503/+19
|
* Fix parted check & disable storage driver if daemon isn't presentDaniel P. Berrange2008-05-293-2/+15
|
* Convert to use new memory allocation APIsDaniel P. Berrange2008-05-2911-416/+435
|
* Pass allocation number to callbackDaniel P. Berrange2008-05-294-6/+11
|
* Convert to use new memory allocation APIsDaniel P. Berrange2008-05-292-10/+10
|
* Fix missing check for memory allocation failureDaniel P. Berrange2008-05-292-0/+8
|
* Convert test suites over to new test infrastructureDaniel P. Berrange2008-05-2910-57/+97
|
* Misc OOM / memory leak fixesDaniel P. Berrange2008-05-294-6/+54
|