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
..
2009-07-16 15:06:42 +02:00
2009-07-08 16:17:51 +02:00
2007-11-12 14:07:37 +00:00
2009-07-16 15:06:42 +02:00
2009-07-16 15:06:42 +02:00
2009-07-16 15:06:42 +02:00
2009-01-12 18:23:10 +00:00
2008-11-24 07:13:29 +00:00
2009-07-16 15:06:42 +02:00
2009-07-16 15:06:42 +02:00