]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
remove stale comments, update some
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 22 Oct 2015 23:30:57 +0000 (18:30 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 22 Oct 2015 23:35:15 +0000 (18:35 -0500)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
cgmanager.c
lxcfs.c

index d6938e47ee358351dfc011d541b18089ee31e806..aefc3582ae7093c1037b956f00e0956d15270b82 100644 (file)
@@ -119,7 +119,7 @@ bool cgm_dbus_connect(void)
 retry:
        if (cgroup_manager) {
                if (!g_dbus_connection_is_closed(cgroup_manager)) {
-                       // someone else reconnect us
+                       // someone else reconnected us
                        cgm_unlock();
                        return true;
                }
diff --git a/lxcfs.c b/lxcfs.c
index 267814c7fed9866d9d6e20b44f7825fd0d79c6cc..3f29fdc295e3dc2d0a3161a7b349ea83337b0eab 100644 (file)
--- a/lxcfs.c
+++ b/lxcfs.c
@@ -6,9 +6,6 @@
  * See COPYING file for details.
  */
 
-/* XXX TODO - in debian/control, drop libcgmanager-dev,
-  and add libdbus-glib-1-dev, and libglib2.0-dev to build-deps.
-  make sure  lxcfs_mkdir is added to the installed files */
 #define FUSE_USE_VERSION 26
 
 #include <stdio.h>
@@ -107,10 +104,6 @@ static char *must_copy_string(void *parent, const char *str)
        return dup;
 }
 
-/*
- * TODO - return value should denote whether child exited with failure
- * so callers can return errors.  Esp read/write of tasks and cgroup.procs
- */
 static int wait_for_pid(pid_t pid)
 {
        int status, ret;
@@ -677,10 +670,6 @@ out:
        return ret;
 }
 
-/*
- * TODO - cache these results in a table for use in opendir, free
- * in releasedir
- */
 static int cg_opendir(const char *path, struct fuse_file_info *fi)
 {
        struct fuse_context *fc = fuse_get_context();
@@ -1676,7 +1665,7 @@ int cg_mkdir(const char *path, mode_t mode)
                }
        } else {
                /*
-                * exec a helerp so as to get a clean dbus connection
+                * exec a helper so as to get a clean dbus connection
                 * 17 for lxcfs_mkdir, and spaces and newline and \0.  50 for two ints.
                 * 50 for two ints
                 */