From aff38e74bd776471f15ba54b305a24b0251eb865 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 22 Apr 2013 17:26:06 -0300 Subject: nspawn: suffix the nspawn cgroups with ".nspawn" As discussed with Dan Berrange it's a good idea to suffix all objects in the cgroup tree with ".something", so that when the system is partitioned using a resource management tool we can drop objects of different types into the same partition directory without generate namespace conflicts. We'l add this to the Pax Control Group document as soon as write access to the fdo wiki is restored. --- src/nspawn/nspawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nspawn') diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 0a5a151202..1e7df38c16 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -1298,7 +1298,7 @@ int main(int argc, char *argv[]) { goto finish; } - newcg = strjoin(machine_root, "/", arg_machine, NULL); + newcg = strjoin(machine_root, "/", arg_machine, ".nspawn", NULL); if (!newcg) { log_error("Failed to allocate cgroup path."); goto finish; -- cgit v1.2.3-54-g00ecf