[CRIU] Re: [PATCH cr 2/2] zdtm: move all logic about namespaces from test_init in libzdtm

Pavel Emelyanov xemul at parallels.com
Tue Aug 14 04:56:36 EDT 2012


On 08/13/2012 04:22 PM, Andrey Vagin wrote:
> 
> A test will be executed in new set of namespaces if the environment
> variable ZDTM_NEWNS is set. A pid of the root task will be written in
> $ZDTM_PIDFILE and a root fyle system will be changed on $ZDTM_ROOT.
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  test/zdtm.sh                       |   30 +++-
>  test/zdtm/lib/Makefile             |    6 +-
>  test/zdtm/lib/ns.c                 |  323 ++++++++++++++++++++++++++++++++++++
>  test/zdtm/lib/ns.h                 |   13 ++
>  test/zdtm/lib/test.c               |   23 +++-
>  test/zdtm/lib/test_init.c          |  245 ---------------------------
>  test/zdtm/live/static/Makefile     |    8 +-
>  test/zdtm/live/static/inotify00.c  |    2 -
>  test/zdtm/live/streaming/Makefile  |    4 +-
>  test/zdtm/live/transition/Makefile |    2 +-
>  10 files changed, 392 insertions(+), 264 deletions(-)
>  create mode 100644 test/zdtm/lib/ns.c
>  create mode 100644 test/zdtm/lib/ns.h
>  delete mode 100644 test/zdtm/lib/test_init.c
> 

Both applied


More information about the CRIU mailing list