Re: [libvirt] [PATCH 15/35] qemu: block: Validate node-names for use with qemu

2018-05-02 Thread John Ferlan
On 04/25/2018 11:15 AM, Peter Krempa wrote: > qemu declares node-name as a 32 byte buffer and silently truncates > anything longer than that. This is unacceptable for libvirt, so we need > to make sure that we won't ever supply a node-name exceeding 31 chars. > > Add a function which will do

[libvirt] [PATCH 15/35] qemu: block: Validate node-names for use with qemu

2018-04-25 Thread Peter Krempa
qemu declares node-name as a 32 byte buffer and silently truncates anything longer than that. This is unacceptable for libvirt, so we need to make sure that we won't ever supply a node-name exceeding 31 chars. Add a function which will do the validation and use it to validate storage-protocol