aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* build: consistently indent preprocessor directivesEric Blake2010-03-091-1/+1
| | | | | | | * global: patch created by running: for f in $(git ls-files '*.[ch]') ; do cppi $f > $f.t && mv $f.t $f done
* Make test suite output less verboseDaniel P. Berrange2010-01-151-2/+2
| | | | | | | | | | | | | | | | | Only print out '.' for each test case, full test output can be re-enabled with VIR_TEST_VERBOSE=1, or VIR_TEST_DEBUG=XXXX Sample output now looks like TEST: statstest ........................................ 40 ................................... 75 OK PASS: statstest TEST: qparamtest ................................ 32 OK PASS: qparamtest TEST: ............ 12 OK
* tests: Centralize VIR_TEST_DEBUG lookup, and document itCole Robinson2009-10-201-2/+2
| | | | | | | | Provide a simple interface for other tests to lookup the testDebug variable. Also remove a redundant error message in interface tests. If anyone feels inclined to change this env variable to match the existing LIBVIRT_* format, it should now be easier to do so.
* Move xen driver code into src/xen/ directoryDaniel P. Berrange2009-09-211-1/+1
| | | | | | | | | | | | | | | | | | | * src/Makefile.am, src/proxy_internal.c, src/proxy_internal.h src/sexpr.c, src/sexpr.h, src/xen_unified.c, src/xen_unified.h, src/xen_internal.c, src/xen_internal.h, src/xen_inotify.c, src/xen_inotify.h, src/xend_internal.c, src/xend_internal.h, src/xm_internal.c, src/xm_internal.h, src/xs_internal.c, src/xs_internal.h: Move to src/xen/ directory * proxy/Makefile.am, proxy/libvirt_proxy.c, src/Makefile.am, src/libvirt.c, tests/sexpr2xmltest.c, tests/statstest.c, tests/xencapstest.c, tests/xmconfigtest.c, tests/xml2sexprtest.c: Adapt to changed xen location * src/stats_linux.h, src/stats_linux.c: Remove xen specific block stats APIs * src/qemu_driver.c, src/uml_driver.c: Add missing sys/un.h include uncovered after change to stats_linux.h * src/xen/block_stats.h, src/xen/block_stats.c: Add xen specific block stats APIs
* Recently upstream Xen added support for having xvd devices > 16. For the mostChris Lalancette2008-08-051-18/+42
| | | | | | | | | | | | | | | | | | | | part, this doesn't really concern libvirt, since for things like attach and detach we just pass it through and let xend worry about whether it is supported or not. The one place this breaks down is in the stats collecting code, where we need to figure out the device number so we can go digging in /sys for the statistics. To remedy this, I've re-written xenLinuxDomainDeviceID() to use regular expressions to figure out the device number from the name. The major advantage is that now xenLinuxDomainDeviceID() looks fairly identical to tools/python/xen/util/blkif.py (in the Xen sources), so that adding additional devices in the future should be much easier. It also reduces the size of the code, and, in my opinion, the code complexity. With this patch in place, I was able to get block statistics both on older style devices (/dev/xvda) and on the new, expanded devices (/dev/xvdaa). Signed-off-by: Chris Lalancette <clalance@redhat.com>
* Convert test suites over to new test infrastructureDaniel P. Berrange2008-05-291-4/+7
|
* Re-factor and pretty print differencesDaniel P. Berrange2008-04-181-122/+85
|
* remove Vim and Emacs variable settings from C source filesJim Meyering2008-04-101-9/+0
| | | | | | | | | Done with these commands: git grep -l Local.variab|xargs \ perl -0x3b -pi -e 's,\n+/\*\n \* vim:(.|\n)*,\n,' git grep -l Local.variab|xargs \ perl -0x3b -pi -e 's,\n+/\*\n \* Local variables:\n(.|\n)*,\n,'
* With --without-xen, avoid warning about unused function.Jim Meyering2008-02-221-1/+4
| | | | * tests/statstest.c (testQuietError) [!WITH_XEN]: Don't define.
* Avoid compilation failure when building --without-xen.Jim Meyering2008-01-311-2/+2
| | | | | | | | * 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>
* Arrange for "make syntax-check" to pass.Jim Meyering2008-01-301-1/+1
| | | | | * .x-sc_avoid_if_before_free: Exempt ChangeLog. * tests/statstest.c: Include <config.h>, not "config.h".
* Fix device name -> number conversion for block statsDaniel P. Berrange2008-01-291-0/+224