[libvirt] [PATCH] util: storage: Fix parsing of 'exportname' from legacy NBD strings

Jiri Denemark jdenemar at redhat.com
Thu Aug 15 10:26:32 UTC 2019


On Wed, Jul 31, 2019 at 17:22:48 +0200, Peter Krempa wrote:
> If the nbd export name contains a colon, our parser would not parse it
> properly as we split the string by colons. Modify the code to look up
> the exportname and copy any trailing characters as the export name is
> supposed to be at the end of the string.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1733044
> 
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
>  src/util/virstoragefile.c | 6 ++++--
>  tests/virstoragetest.c    | 8 ++++++++
>  2 files changed, 12 insertions(+), 2 deletions(-)

Reviewed-by: Jiri Denemark <jdenemar at redhat.com>




More information about the libvir-list mailing list