[Libguestfs] [PATCH nbdkit 1/2] log: Use strict shell quoting for every parameter displayed in the log file.

Eric Blake eblake at redhat.com
Mon Jan 4 15:03:51 UTC 2021


On 12/20/20 6:23 AM, Richard W.M. Jones wrote:
> This is not fully backwards compatible, although the changes are
> minor:
> 
>  * Lists returned by ListExports and Extents use the array format that
>    can be parsed by bash, eg:
> 
>    Extents id=1 extents=(0x0 0x8000 "hole,zero" 0x8000 0x8000 "") return=0
> 
>  * Errors are returned as separate error= parameters, and simplified, eg:
> 
>    ...Read id=1 return=-1 error=EINVAL
> 
>  * Strings are quoted properly in all circumstances.
> 
> This commit also updates the documentation and adds more tests.

Makes sense to me.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




More information about the Libguestfs mailing list