Commit [99ccdf]  Maximize  Restore  History

libcgroup: Setup the namespace datastructures

This patch handles the validation of the newer configuration files.

Some of the rules to be followed
1. We cannot have more controllers in the namespcae section than
already mounted.
2. If more than one controller are mounted at the same point, then
they will have the same namespace. In case it is not explicitly
mentioned, the subsystems at the mount point will be set to the
same namespace. This does not mean that controllers mounted at different
points need to have the same namespace.

Changes from v4:
1. Changed a variable name from mount to mount_path
2. Added more comments

Changes from v3:
1. Removed most of the strdups
2. Fixed return values for errors

Changes from v2:
1. mount and namespace keyword cannot come in the same file.

Changes from v1:
1. Fix a bug where if a namespace was not defined, we were not exiting
2. Comment the validate namespace function
3. Make some of the variables more descriptive
4. Make namespace thread specific

Signed-off-by: Dhaval Giani <>

Dhaval Giani Dhaval Giani 2010-01-07

changed include/libcgroup.h
changed src/api.c
changed src/config.c
changed src/libcgroup-internal.h
include/libcgroup.h Diff Switch to side-by-side view
src/api.c Diff Switch to side-by-side view
src/config.c Diff Switch to side-by-side view
src/libcgroup-internal.h Diff Switch to side-by-side view

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks