1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00
libvirt/tests/xml2sexprdata
Daniel P. Berrange 2d6adabd53 Don't blindly reorder disk drives
Calling qsort() on the disks array causes disk to be
unneccessarily re-ordered, potentially breaking the
ability to boot if the boot disk gets moved later in
the list. The new algorithm will insert a new disk as
far to the end of the list as possible, while being
ordered correctly wrt other disks on the same bus.

* src/domain_conf.c, src/domain_conf.h: Remove disk sorting
  routines. Add API to insert a disk into existing list at
  the optimal position, without resorting disks
* src/libvirt_private.syms: Export virDomainDiskInsert
* src/xend_internal.c, src/xm_internal.c: Remove calls to
  qsort, use virDomainDiskInsert instead.
* src/qemu_driver.c: Remove calls to qsort, use virDoaminDiskInsert
  instead. Fix reordering bugs when hotunplugging disks and
  networks. Fix memory leak in disk/net unplug
2009-09-02 15:19:34 +01:00
..
.gitignore generate .gitignore files from .cvsignore ones 2008-10-17 10:03:15 +00:00
Makefile.am Added support for XenD 3.0.3 style HVM cdrom config 2006-09-12 01:16:22 +00:00
xml2sexpr-bridge-ipaddr.sexpr parse IP address for bridge interfaces 2009-01-23 01:48:47 +00:00
xml2sexpr-bridge-ipaddr.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-curmem.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-curmem.xml Fix test case for change in bootloader handling 2006-12-06 23:40:08 +00:00
xml2sexpr-disk-block-shareable.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-disk-block-shareable.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-block.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-disk-block.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-drv-blkback.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-disk-drv-blkback.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-drv-blktap-qcow.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-disk-drv-blktap-qcow.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-drv-blktap-raw.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-disk-drv-blktap-raw.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-drv-blktap.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-disk-drv-blktap.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-drv-loop.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-disk-drv-loop.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-file.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-disk-file.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-kernel.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-kernel.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-localtime.sexpr Fix localtime handling for newer XenD 2009-04-01 10:36:52 +00:00
xml2sexpr-fv-localtime.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-parallel-tcp.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-parallel-tcp.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-file.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-serial-file.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-null.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-serial-null.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-pipe.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-serial-pipe.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-pty.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-serial-pty.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-stdio.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-serial-stdio.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-tcp-telnet.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-serial-tcp-telnet.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-tcp.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-serial-tcp.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-udp.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-serial-udp.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-unix.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-serial-unix.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-sound.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-sound.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-usbmouse.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-usbmouse.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-usbtablet.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-usbtablet.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-utc.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv-utc.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-v2.sexpr Fix disk ordering and add target duplication checking when parsing domain xml. 2008-09-03 14:30:24 +00:00
xml2sexpr-fv-vncunused.sexpr Fix disk ordering and add target duplication checking when parsing domain xml. 2008-09-03 14:30:24 +00:00
xml2sexpr-fv-vncunused.xml Don't blindly reorder disk drives 2009-09-02 15:19:34 +01:00
xml2sexpr-fv.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-fv.xml Don't blindly reorder disk drives 2009-09-02 15:19:34 +01:00
xml2sexpr-net-bridged.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-net-bridged.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-net-e1000.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-net-e1000.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-net-routed.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-net-routed.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-no-source-cdrom.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-no-source-cdrom.xml Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-pci-devs.sexpr Support PCI passthrough for Xen 2009-04-03 12:38:52 +00:00
xml2sexpr-pci-devs.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-pv-bootloader.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-pv-bootloader.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-pv-localtime.sexpr Fix localtime handling for newer XenD 2009-04-01 10:36:52 +00:00
xml2sexpr-pv-localtime.xml Fix localtime handling for newer XenD 2009-04-01 10:36:52 +00:00
xml2sexpr-pv-vfb-new-auto.sexpr Fix broken test case data files 2008-09-17 15:39:11 +00:00
xml2sexpr-pv-vfb-new-auto.xml Fix reading vncdisplay from xend, add several test cases for xen vnc corner case 2008-09-09 13:53:58 +00:00
xml2sexpr-pv-vfb-new.sexpr Fix starting of xen domains without a PVFB console by removing default emulator 2008-09-05 11:52:12 +00:00
xml2sexpr-pv-vfb-new.xml Added support for keymap in VNC display 2007-03-06 20:00:17 +00:00
xml2sexpr-pv-vfb-orig.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-pv-vfb-orig.xml Added support for keymap in VNC display 2007-03-06 20:00:17 +00:00
xml2sexpr-pv.sexpr Convert XenD XML->SEXPR conversion to new domain XML APIs 2008-07-25 13:17:27 +00:00
xml2sexpr-pv.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00