Re: [libvirt] [PATCH 3/6 v4] qemu: Record names of domain which uses the shared disk in hash table

2013-02-20 Thread Daniel P. Berrange
On Wed, Feb 20, 2013 at 03:43:55PM +0800, Osier Yang wrote: 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

[libvirt] [PATCH 3/6 v4] qemu: Record names of domain which uses the shared disk in hash table

2013-02-19 Thread Osier Yang
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). ---