[PATCH 0/6] Parse back some legacy backing store strings

Michal Prívozník mprivozn at redhat.com
Fri Mar 20 08:07:52 UTC 2020


On 19. 3. 2020 20:35, Peter Krempa wrote:
> See patch 4 for code and 6 for what we try to parse back.
> 
> Peter Krempa (6):
>   virBitmapNewEmpty: Use g_new0 to allocate and remove error checking
>   virJSONValueObjectDeflattenWorker: Refactor cleanup
>   util: json: Extract deflattening of keys into a separate function
>   virjson: Deflatten arrays generated by the json->commandline generator
>   jsontest: Add test cases for deflattening of arrays
>   tests: virstoragetest: validate that array deflattening works for
>     gluster
> 
>  src/util/virbitmap.c                          |  14 +--
>  src/util/virhostcpu.c                         |   6 +-
>  src/util/virjson.c                            | 105 ++++++++++++++----
>  src/util/virtpm.c                             |   3 +-
>  tests/virbitmaptest.c                         |   8 +-
>  .../deflatten-dotted-array-in.json            |  27 +++++
>  .../deflatten-dotted-array-out.json           |  43 +++++++
>  tests/virjsontest.c                           |   1 +
>  tests/virstoragetest.c                        |  18 +++
>  9 files changed, 182 insertions(+), 43 deletions(-)
>  create mode 100644 tests/virjsondata/deflatten-dotted-array-in.json
>  create mode 100644 tests/virjsondata/deflatten-dotted-array-out.json
> 

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

Michal




More information about the libvir-list mailing list