1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-26 03:21:44 +03:00
libvirt/tests
Chris Lalancette 8c30002862 Recently upstream Xen added support for having xvd devices > 16. For the most
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>
2008-08-05 16:38:49 +00:00
..
confdata * NEWS virsh.1 docs//* include/libvirt/libvirt.h[.in] qemud/mdns.h 2008-03-17 10:27:31 +00:00
domainschemadata Support for container related domain XML extensions 2008-08-01 13:31:37 +00:00
nodeinfodata Use gnulib, starting with its physmem and getaddrinfo modules. 2007-12-05 21:31:07 +00:00
qemuxml2argvdata The new generic domain re-factor introduced a small regression into the drive 2008-07-29 12:09:21 +00:00
sexpr2xmldata Convert XenD SEXPR->XML convesion to new domain XML APIs 2008-07-25 10:49:33 +00:00
virshdata Fix make syntax-check caused by trailing blanks 2008-05-29 05:21:53 +00:00
xencapsdata Add formal internal capabilities API and update drivers to use it 2008-02-27 04:35:08 +00:00
xmconfigdata Switch XM config file driver to use new domain APIs for XML to config conversion 2008-07-25 14:10:49 +00:00
xml2sexprdata Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
.cvsignore Fix misc leaks in qparams code, support ; as param separator. Add test suite 2008-05-22 23:49:36 +00:00
.valgrind.supp Misc bug fixes 2008-07-25 09:31:24 +00:00
conftest.c convert TAB-based indentation in C sources to use only spaces 2008-04-10 16:54:54 +00:00
daemon-conf Test libvirtd's config-processing code. 2007-12-11 21:20:13 +00:00
domainschematest Support for container related domain XML extensions 2008-08-01 13:31:37 +00:00
int-overflow Oops, forgot, Daniel 2007-11-12 14:07:37 +00:00
Makefile.am Added test to validate all domain XML files against schema 2008-08-01 10:53:41 +00:00
nodeinfotest.c Convert test suites over to new test infrastructure 2008-05-29 15:31:49 +00:00
oomtrace.pl Generic test suite helpers for OOM testing 2008-05-29 15:21:45 +00:00
qemuxml2argvtest.c The new generic domain re-factor introduced a small regression into the drive 2008-07-29 12:09:21 +00:00
qemuxml2xmltest.c Switch QEMU driver over to generic domain APIs 2008-07-11 19:34:11 +00:00
qparamtest.c Convert test suites over to new test infrastructure 2008-05-29 15:31:49 +00:00
read-bufsiz virsh fails to read files larger than BUFSIZ bytes 2008-06-19 14:30:52 +00:00
read-non-seekable Convert test driver to new domain XML apis 2008-07-11 16:41:27 +00:00
reconnect.c Standardize use of header files, making internal.h primary. 2008-05-23 08:24:41 +00:00
sexpr2xmltest.c Convert XenD SEXPR->XML convesion to new domain XML APIs 2008-07-25 10:49:33 +00:00
statstest.c Recently upstream Xen added support for having xvd devices > 16. For the most 2008-08-05 16:38:49 +00:00
test_conf.sh Re-factor and pretty print differences 2008-04-18 15:28:33 +00:00
test_xmlrpc.sh XML-RPC tests 2006-05-09 15:35:46 +00:00
test-lib.sh Don't fail to read a file because it's non-seekable (e.g., a pipe). 2008-04-08 15:33:16 +00:00
testutils.c Fix use of VIR_TEST_DEBUG var when OOM testing is not enabled & surpress more valgrind warnings 2008-07-09 10:27:17 +00:00
testutils.h Generic test suite helpers for OOM testing 2008-05-29 15:21:45 +00:00
testutilsqemu.c Compilation fixes for MinGW 2008-06-26 09:37:51 +00:00
testutilsqemu.h Make QEMU test suite independant of host OS capabilities 2008-05-16 16:51:30 +00:00
testutilsxen.c Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
testutilsxen.h Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
undefine better diagnostic when failing to undefine a running domain via ID 2008-07-22 16:12:01 +00:00
vcpupin * tests/vcpupin: Add a test for the 2008-04-04 virsh.c bugfix. 2008-04-07 12:12:34 +00:00
virshtest.c Remove legacy debug output 2008-07-09 10:18:03 +00:00
xencapstest.c Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xmconfigtest.c Prepare xm_internal driver for new domain XML apis 2008-07-25 13:39:02 +00:00
xml2sexprtest.c Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xmlrpcserver.py XML-RPC tests 2006-05-09 15:35:46 +00:00
xmlrpctest.c Standardize use of header files, making internal.h primary. 2008-05-23 08:24:41 +00:00