]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: move cgroup files to common subfolder
authorChristian Brauner <cbrauner@suse.de>
Sun, 31 Jul 2016 10:21:58 +0000 (12:21 +0200)
committerChristian Brauner <cbrauner@suse.de>
Sun, 31 Jul 2016 10:48:10 +0000 (12:48 +0200)
Signed-off-by: Christian Brauner <cbrauner@suse.de>
src/lxc/Makefile.am
src/lxc/cgroups/cgfs.c [moved from src/lxc/cgfs.c with 100% similarity]
src/lxc/cgroups/cgfsng.c [moved from src/lxc/cgfsng.c with 100% similarity]
src/lxc/cgroups/cgmanager.c [moved from src/lxc/cgmanager.c with 100% similarity]
src/lxc/cgroups/cgroup.c [moved from src/lxc/cgroup.c with 100% similarity]
src/lxc/cgroups/cgroup.h [moved from src/lxc/cgroup.h with 100% similarity]

index 5078b5c8ada4d2a427aa9c7073ee2b6285221b22..9a87c152aa1371cbcb171094b7a3b1d48f418389 100644 (file)
@@ -17,8 +17,8 @@ noinst_HEADERS = \
        bdev/lxcrbd.h \
        bdev/lxcrsync.h \
        bdev/lxczfs.h \
+       cgroups/cgroup.h \
        caps.h \
-       cgroup.h \
        conf.h \
        console.h \
        error.h \
@@ -80,6 +80,9 @@ liblxc_so_SOURCES = \
        bdev/lxcrbd.c bdev/lxcrbd.h \
        bdev/lxcrsync.c bdev/lxcrsync.h \
        bdev/lxczfs.c bdev/lxczfs.h \
+       cgroups/cgfs.c \
+       cgroups/cgfsng.c \
+       cgroups/cgroup.c cgroups/cgroup.h \
        commands.c commands.h \
        start.c start.h \
        execute.c \
@@ -88,9 +91,6 @@ liblxc_so_SOURCES = \
        freezer.c \
        error.h error.c \
        parse.c parse.h \
-       cgfs.c \
-       cgfsng.c \
-       cgroup.c cgroup.h \
        lxc.h \
        initutils.c initutils.h \
        utils.c utils.h \
@@ -122,7 +122,7 @@ liblxc_so_SOURCES = \
        $(LSM_SOURCES)
 
 if ENABLE_CGMANAGER
-liblxc_so_SOURCES += cgmanager.c
+liblxc_so_SOURCES += cgroups/cgmanager.c
 endif
 
 if IS_BIONIC
@@ -154,7 +154,8 @@ AM_CFLAGS=-DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
        -DSBINDIR=\"$(SBINDIR)\" \
        -I $(top_srcdir)/src \
        -I $(top_srcdir)/src/lxc \
-       -I $(top_srcdir)/src/lxc/bdev
+       -I $(top_srcdir)/src/lxc/bdev \
+       -I $(top_srcdir)/src/lxc/cgroups
 
 if ENABLE_APPARMOR
 AM_CFLAGS += -DHAVE_APPARMOR
similarity index 100%
rename from src/lxc/cgfs.c
rename to src/lxc/cgroups/cgfs.c
similarity index 100%
rename from src/lxc/cgfsng.c
rename to src/lxc/cgroups/cgfsng.c
similarity index 100%
rename from src/lxc/cgroup.c
rename to src/lxc/cgroups/cgroup.c
similarity index 100%
rename from src/lxc/cgroup.h
rename to src/lxc/cgroups/cgroup.h