]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Record names of domain which uses the shared disk in hash table
authorOsier Yang <jyang@redhat.com>
Wed, 20 Feb 2013 07:43:55 +0000 (15:43 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 20 Feb 2013 16:31:24 +0000 (00:31 +0800)
commita4504ac184c8fa5c30856a58e2f26f1a5db3fb90
treee0ca7ccda43a6d59f043d6dcc9f56aff9a03233f
parent371df778ebe53e649640d6cd27027856c852e5cc
qemu: Record names of domain which uses the shared disk in hash table

The hash entry is changed from "ref" to {ref, @domains}. With this, the
caller can simply call qemuRemoveSharedDisk, without afraid of removing
the entry belongs to other domains. qemuProcessStart will obviously
benifit from it on error codepath (which calls qemuProcessStop to do
the cleanup).
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
src/qemu/qemu_process.c