[libvirt] [PATCH v3 3/4] logical: Clean up allocation when building regex on the fly

Pavel Hrdina phrdina at redhat.com
Tue Feb 2 13:26:53 UTC 2016


On Mon, Feb 01, 2016 at 03:29:52PM -0500, John Ferlan wrote:
> Rather than a loop reallocating space to build the regex, just allocate
> it once up front, then if there's more than 1 nextent, append a comma and
> another regex_unit string.
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  src/storage/storage_backend_logical.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)

ACK




More information about the libvir-list mailing list