]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
remove the LXCPATH/<name>/nsgroup file
authorMichel Normand <normand@fr.ibm.com>
Fri, 9 Oct 2009 09:38:39 +0000 (11:38 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 9 Oct 2009 09:38:39 +0000 (11:38 +0200)
There is no more need of this file so remove it.

Signed-off-by: Michel Normand <normand@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/cgroup.c
src/lxc/cgroup.h
src/lxc/start.c

index fc13d991c8ec09c458a1e48095a36011743e5b75..aa06dd54874edfc0f221a293e4f2380164ce9e41 100644 (file)
@@ -119,23 +119,7 @@ int lxc_rename_nsgroup(const char *name, struct lxc_handler *handler)
        return ret;
 }
 
-int lxc_link_nsgroup(const char *name, const char *nsgroup)
-{
-       char lxc[MAXPATHLEN];
-       int ret;
-
-       snprintf(lxc, MAXPATHLEN, LXCPATH "/%s/nsgroup", name);
-
-       unlink(lxc);
-       ret = symlink(nsgroup, lxc);
-       if (ret)
-               SYSERROR("failed to create symlink %s->%s", nsgroup, lxc);
-       else
-               DEBUG("'%s' linked to '%s'", nsgroup, lxc);
-
-       return ret;
-}
-
+#warning keep lxc_unlink_nsgroup fct to be able to destroy old created container.
 int lxc_unlink_nsgroup(const char *name)
 {
        char nsgroup[MAXPATHLEN];
index cc125b2d60dc23c36e675c3cfb1b8f76f42e008d..88791bed802b0d681c5246ba164db37837dfd58e 100644 (file)
@@ -26,9 +26,7 @@
 #define MAXPRIOLEN 24
 
 struct lxc_handler;
-int lxc_get_cgroup_mount(const char *mtab, char *mnt);
 int lxc_rename_nsgroup(const char *name, struct lxc_handler *handler);
-int lxc_link_nsgroup(const char *name, const char *nsgroup);
 int lxc_unlink_nsgroup(const char *name);
 int lxc_cgroup_path_get(char **path, const char *name);
 
index 1e2a28f0b6ccbe672cac819127b7d6794307a8c6..2447b2d5fd3ec4a602ca7090bde2ca3e1d18175b 100644 (file)
@@ -424,8 +424,7 @@ int lxc_spawn(const char *name, struct lxc_handler *handler, char *const argv[])
                goto out_abort;
        }
 
-       if (lxc_rename_nsgroup(name, handler) ||
-           lxc_link_nsgroup(name, handler->nsgroup))
+       if (lxc_rename_nsgroup(name, handler))
                goto out_abort;
 
        /* Create the network configuration */