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
Makefile.am
xml2sexpr-bridge-ipaddr.sexpr
xml2sexpr-bridge-ipaddr.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-curmem.sexpr
xml2sexpr-curmem.xml
xml2sexpr-disk-block-shareable.sexpr
xml2sexpr-disk-block-shareable.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-block.sexpr
xml2sexpr-disk-block.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-drv-blkback.sexpr
xml2sexpr-disk-drv-blkback.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-drv-blktap-qcow.sexpr
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
xml2sexpr-disk-drv-blktap-raw.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-drv-blktap.sexpr
xml2sexpr-disk-drv-blktap.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-drv-loop.sexpr
xml2sexpr-disk-drv-loop.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-disk-file.sexpr
xml2sexpr-disk-file.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-kernel.sexpr
xml2sexpr-fv-kernel.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-localtime.sexpr
xml2sexpr-fv-localtime.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-parallel-tcp.sexpr
xml2sexpr-fv-parallel-tcp.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-file.sexpr
xml2sexpr-fv-serial-file.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-null.sexpr
xml2sexpr-fv-serial-null.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-pipe.sexpr
xml2sexpr-fv-serial-pipe.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-pty.sexpr
xml2sexpr-fv-serial-pty.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-stdio.sexpr
xml2sexpr-fv-serial-stdio.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-tcp-telnet.sexpr
xml2sexpr-fv-serial-tcp-telnet.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-tcp.sexpr
xml2sexpr-fv-serial-tcp.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-udp.sexpr
xml2sexpr-fv-serial-udp.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-serial-unix.sexpr
xml2sexpr-fv-serial-unix.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-sound.sexpr
xml2sexpr-fv-sound.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-usbmouse.sexpr
xml2sexpr-fv-usbmouse.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-usbtablet.sexpr
xml2sexpr-fv-usbtablet.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-utc.sexpr
xml2sexpr-fv-utc.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-fv-v2.sexpr
xml2sexpr-fv-vncunused.sexpr
xml2sexpr-fv-vncunused.xml Don't blindly reorder disk drives 2009-09-02 15:19:34 +01:00
xml2sexpr-fv.sexpr
xml2sexpr-fv.xml Don't blindly reorder disk drives 2009-09-02 15:19:34 +01:00
xml2sexpr-net-bridged.sexpr
xml2sexpr-net-bridged.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-net-e1000.sexpr
xml2sexpr-net-e1000.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-net-routed.sexpr
xml2sexpr-net-routed.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-no-source-cdrom.sexpr
xml2sexpr-no-source-cdrom.xml
xml2sexpr-pci-devs.sexpr
xml2sexpr-pci-devs.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-pv-bootloader.sexpr
xml2sexpr-pv-bootloader.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xml2sexpr-pv-localtime.sexpr
xml2sexpr-pv-localtime.xml
xml2sexpr-pv-vfb-new-auto.sexpr
xml2sexpr-pv-vfb-new-auto.xml
xml2sexpr-pv-vfb-new.sexpr
xml2sexpr-pv-vfb-new.xml
xml2sexpr-pv-vfb-orig.sexpr
xml2sexpr-pv-vfb-orig.xml
xml2sexpr-pv.sexpr
xml2sexpr-pv.xml remove all trailing blank lines 2009-07-16 15:06:42 +02:00