[libvirt] [PATCH 2/3] Pull lxcContainerGetSubtree out into shared virfile module

Eric Blake eblake at redhat.com
Wed Nov 27 22:25:28 UTC 2013


On 11/27/2013 09:31 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> Move the code for lxcContainerGetSubtree into the virfile
> module creating 2 new functions
> 
>   int virFileGetMountSubtree(const char *mtabpath,
>                              const char *prefix,
>                              char ***mountsret,
>                              size_t *nmountsret);
>   int virFileGetMountReverseSubtree(const char *mtabpath,
>                                     const char *prefix,
>                                     char ***mountsret,
>                                     size_t *nmountsret);
> 
> Add a new virfiletest.c test case to validate the new code.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---

> @@ -1747,6 +1749,8 @@ virStringArrayHasString;
>  virStringFreeList;
>  virStringJoin;
>  virStringListLength;
> +virStringSortCompare;
> +virStringSortRevCompare;

Maybe worth splitting this into an independent patch, as virsh also
could use it.

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131127/bf6ac979/attachment-0001.sig>


More information about the libvir-list mailing list