]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Don't allow duplicated target names regardless of bus
authorJohn Ferlan <jferlan@redhat.com>
Thu, 18 Jun 2015 20:00:53 +0000 (16:00 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 9 Jul 2015 12:30:02 +0000 (08:30 -0400)
commit2e09729b1c1cc0096be4edd2d939bf1044aec506
treef222e84f327967c70e932e0441e24200eee7899c
parentb5637871920c88d88a32343a13c6c1476062a6bb
conf: Don't allow duplicated target names regardless of bus

https://bugzilla.redhat.com/show_bug.cgi?id=1142631

Commit id 'e0e290552' added a check to determine if the same bus
had the same target value.  It seems that's not quite good enough
as the check should check the target name value regardless of bus type.

Also added a DO_TEST_DIFFERENT to exhibit the issue
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-disk-same-targets.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c