[libvirt] [PATCH 16/23] qemu: block: Add code to allow detection of auto-allocated node names

Eric Blake eblake at redhat.com
Thu Mar 23 22:05:30 UTC 2017


On 03/15/2017 11:37 AM, Peter Krempa wrote:
> qemu for some time already sets node names automatically for the block
> nodes. This patch adds code that attempts a best-effort detection of the
> node names for the backing chain from the output of
> 'query-named-block-nodes'. The only drawback is that the data provided
> by qemu needs to be matched by the filename as seen by qemu and thus
> if two disks share a single backing store file the detection won't work.
> 
> This will allow us to use qemu commands such as
> 'block-set-write-threshold' which only accepts node names.
> 
> In this patch only the detection code is added, it will be used later.
> ---

A bit hairy to follow, but looks like it works. The real test will be
when I play with it after applying your entire series locally, to see
what I can come up with.  So for now, tentative ACK

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170323/8054a593/attachment-0001.sig>


More information about the libvir-list mailing list