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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/27/2013 09:31 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> 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@xxxxxxxxxx>
> ---

> @@ -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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]