diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-10-30 14:54:34 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-11-07 13:58:58 +0100 |
commit | 7ceeedd016facf8d58e14a0d1417fa7225d71072 (patch) | |
tree | 1573a83b68af23565ea6592a91945c707dfcba48 /block.c | |
parent | 0c460dac03e7919079525d8e24ef2c4c607c219d (diff) | |
download | qemu-7ceeedd016facf8d58e14a0d1417fa7225d71072.zip qemu-7ceeedd016facf8d58e14a0d1417fa7225d71072.tar.gz qemu-7ceeedd016facf8d58e14a0d1417fa7225d71072.tar.bz2 |
blockdev-test: add test case for drive_add duplicate IDs
The following should work:
(qemu) drive_add if=none,id=drive0
(qemu) drive_del drive0
(qemu) drive_add if=none,id=drive0
Previous versions of QEMU produced a duplicate ID error because
drive_add leaked the options.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block.c')
0 files changed, 0 insertions, 0 deletions