[CRIU] [PATCH 0/2] mount: don't create a temporary directory if /tmp exists
Andrei Vagin
avagin at openvz.org
Mon Aug 8 17:22:59 PDT 2016
From: Andrei Vagin <avagin at virtuozzo.com>
pivot_root requires a place where to move an old root. Currently
a temporary directory is created for this, but it doesn't
work if the / directory is read-only.
Actually we can use any existing directory. In this patch,
criu tries to use /tmp and only if it doesn't exist,
criu creates a temporary directory.
Andrei Vagin (2):
mount: don't create a temporary directory if /tmp exists
zdtm: check a case when a root of sub-mntns is read-only
criu/mount.c | 16 ++++++---
test/zdtm/static/Makefile | 1 +
test/zdtm/static/mntns_ro_root.c | 70 +++++++++++++++++++++++++++++++++++++
test/zdtm/static/mntns_ro_root.desc | 1 +
4 files changed, 83 insertions(+), 5 deletions(-)
create mode 100644 test/zdtm/static/mntns_ro_root.c
create mode 100644 test/zdtm/static/mntns_ro_root.desc
--
2.7.4
More information about the CRIU
mailing list