[libvirt] [PATCH] Rename virDomainGetRootFilesystem to virDomainGetFilesystemForTarget

Eric Blake eblake at redhat.com
Thu Feb 20 13:17:31 UTC 2014


On 12/18/2013 05:22 AM, Daniel P. Berrange wrote:

Wow, this one has sat for a while.

> The virDomainGetRootFilesystem method can be generalized to allow
> any filesystem path to be obtained.
> 
> While doing this, start a new test case for purpose of testing various
> helper methods in the domain_conf.{c,h} files, such as this one.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---

> +++ b/src/lxc/lxc_container.c
> @@ -1823,7 +1823,7 @@ static int lxcContainerChild(void *data)
>      if (lxcContainerSetID(vmDef) < 0)
>          goto cleanup;
>  
> -    root = virDomainGetRootFilesystem(vmDef);
> +    root = virDomainGetFilesystemForTarget(vmDef, "/");
>  

Looks okay to me.

> +++ b/tests/domainconftest.c
> @@ -0,0 +1,120 @@
> +/*
> + * Copyright (C) 2013 Red Hat, Inc.

You may want to add 2014 to the new files.

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: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140220/261b1a04/attachment-0001.sig>


More information about the libvir-list mailing list