[CRIU] [PATCH 0/5]v2 work dir

Andrew Vagin avagin at parallels.com
Mon Nov 18 07:22:22 PST 2013


On Fri, Nov 15, 2013 at 11:04:25PM +0400, Ruslan Kuprieiev wrote:
> This set of patches will allow us to specifie work directory where
> pidfiles/logs/stats are placed. We will also save one service fd.
> 
> Ruslan Kuprieiev (5):
>   crtools: add --work-dir(-W) option
>   image: add dir parameter to open_image_dir()
>   log: get rid of LOG_DIR_FD_OFF and opening cwd in log_init()
>   crtools: chdir to work directory
>   page-server/service: do not chdir / when going daemon
> 
>  cr-restore.c        |  1 -
>  cr-service.c        |  6 ++----
>  crtools.c           | 38 ++++++++++++++++++++++++++------------
>  image.c             |  6 +++---
>  include/image.h     |  2 +-
>  include/servicefd.h |  1 -
>  log.c               | 26 ++------------------------
>  page-xfer.c         |  2 +-
>  8 files changed, 35 insertions(+), 47 deletions(-)
>

dump.log and restore.log are created in the current dir.

[root at avagin-fc19-cr crtools]# bash  test/zdtm.sh -C static/env00
================================= CRIU CHECK =================================
Looks good.
Execute zdtm/live/static/env00
./env00 --pidfile=env00.pid --outfile=env00.out --envname=ENV_00_TEST
Dump 9223
Restore
Check results 9223
19:22:44.720:  9223: PASS
Test: zdtm/live/static/env00, Result: PASS
ZDTM tests PASS.

[root at avagin-fc19-cr crtools]# ls -l test/dump.log  test/restore.log 
-rw------- 1 root root 27951 Nov 18 19:22 test/dump.log
-rw------- 1 root root 18968 Nov 18 19:22 test/restore.log

Before these changes logs are saved in test/dump/PID/1
crtools is executed with -D test/dump/PID/1 -o dump.log.

Ruslan, pls fix this issue.

Thanks.

> -- 
> 1.8.1.2
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list