[Libct] [PATCH 5/7] VZ containers: add FS root to vz_create_exec test

aburluka aburluka at parallels.com
Wed Nov 12 04:52:07 PST 2014


I am sorry for that patch, it should be squashed with spawn_execve part.
I'll fix it
On 11/12/2014 03:40 PM, Alexander Burluka wrote:
> ---
>   test/vz_create_exec.c |    3 +++
>   1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/test/vz_create_exec.c b/test/vz_create_exec.c
> index 0f98b0d..6401aa7 100644
> --- a/test/vz_create_exec.c
> +++ b/test/vz_create_exec.c
> @@ -2,9 +2,11 @@
>   #include <stdlib.h>
>   #include <libct.h>
>   #include <unistd.h>
> +#include <sched.h>
>   
>   #include "test.h"
>   
> +#define FS_ROOT		"/"
>   int main(int argc, char *argv[])
>   {
>   	libct_session_t s;
> @@ -16,6 +18,7 @@ int main(int argc, char *argv[])
>   	s = libct_session_open_local();
>   	ct = libct_container_create(s, "1337");
>   	p = libct_process_desc_create(s);
> +	libct_fs_set_root(ct, FS_ROOT);
>   
>   	if (libct_container_spawn_execvfds(ct, p, "/bin/ls", ls_a, fds) <= 0)
>   		goto err;

-- 
Regards,
Alexander Burluka



More information about the Libct mailing list