]> git.ipfire.org Git - thirdparty/libcgroup.git/log
thirdparty/libcgroup.git
17 years agoRemoved AC_PROG_MKDIR_P from configure.in, it was preventing us
Balbir Singh [Mon, 26 May 2008 11:01:58 +0000 (11:01 +0000)] 
Removed AC_PROG_MKDIR_P from configure.in, it was preventing us
from getting to work without install-sh. Regenrate configure after the changes

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/tags/v0.1b@58 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoRemoved AC_PROG_MKDIR_P from configure.in, it was preventing us
Balbir Singh [Mon, 26 May 2008 11:00:23 +0000 (11:00 +0000)] 
Removed AC_PROG_MKDIR_P from configure.in, it was preventing us
from getting to work without install-sh

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/tags/v0.1b@57 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoMoving away from the install-sh model and removed AC_PROG_INSTALL
Balbir Singh [Sat, 24 May 2008 15:24:00 +0000 (15:24 +0000)] 
Moving away from the install-sh model and removed AC_PROG_INSTALL

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/tags/v0.1b@54 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoMerged with balbir, all part of build automation
Balbir Singh [Sat, 24 May 2008 11:23:08 +0000 (11:23 +0000)] 
Merged with balbir, all part of build automation

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/tags/v0.1b@52 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoCreate a new tag v0.1b
Balbir Singh [Sat, 24 May 2008 11:16:09 +0000 (11:16 +0000)] 
Create a new tag v0.1b

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/tags/v0.1b@50 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoAdd v0.1b tag
Balbir Singh [Sat, 24 May 2008 11:08:57 +0000 (11:08 +0000)] 
Add v0.1b tag

git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/tags/v0.1b@49 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoMultiple mount point support. Patches built on top of Dhaval'a patches.
Balbir Singh [Sat, 17 May 2008 16:06:20 +0000 (16:06 +0000)] 
Multiple mount point support. Patches built on top of Dhaval'a patches.
Works for me on my testing. NOTE: The testing is insufficient as we
only test cg_control_create_cgroup() and not delete_cgroup() or
attach_task(). Sudhir's new test cases should really help

Several coding style fixes and changes, enhancements to make the code
work.

NOTE: Since this is development release -DDEBUG is back in the makefile.
Once this is committed, I'll bump up the version to 0.05 if no one objects.

Test report
-----------
debug log from the library

matched cpuacct:cpuacct
Found cgroup option rw,relatime,cpuacct,  count 0
matched cpu:cpu
Found cgroup option rw,relatime,cpu,  count 1
tuid 0, tgid 0, cuid 1000, cgid 1000
path is /tmp/container_cpu/database/
path is /tmp/container_cpuacct/database/

NOTE: The database directory was created as expected on both mount points
/tmp/container_cpu and /tmp/container_cpuacct

balbir@localhost:~/deliverables/nextgen/libcg/branches/balbir/tests$ ls -al /tmp/container_cpuacct/
total 424
drwxrwxrwt  5 root   root        0 2008-05-17 21:27 .
drwxrwxrwt 32 root   root   425984 2008-05-17 21:26 ..
drwxr-xr-x  2 root   root        0 2008-05-17 17:09 class1
drwxr-xr-x  2 balbir balbir      0 2008-05-17 17:09 class2
-rw-r--r--  1 root   root        0 2008-05-17 17:09 cpuacct.usage
drwxr-xr-x  2 balbir balbir      0 2008-05-17 21:27 database
-rw-r--r--  1 root   root        0 2008-05-17 17:09 notify_on_release
-rw-r--r--  1 root   root        0 2008-05-17 17:09 releasable
-rw-r--r--  1 root   root        0 2008-05-17 17:09 release_agent
-rwxrwxrwx  1 root   root        0 2008-05-17 17:09 tasks

balbir@localhost:~/deliverables/nextgen/libcg/branches/balbir/tests$ ls -al /tmp/container_cpu
total 424
drwxrwxrwt  5 root   root        0 2008-05-17 21:27 .
drwxrwxrwt 32 root   root   425984 2008-05-17 21:26 ..
drwxr-xr-x  2 root   root        0 2008-05-17 17:09 class1
drwxr-xr-x  2 balbir balbir      0 2008-05-17 17:09 class2
-rw-r--r--  1 root   root        0 2008-05-17 17:09 cpu.rt_runtime_us
-rw-r--r--  1 root   root        0 2008-05-17 17:09 cpu.shares
drwxr-xr-x  2 balbir balbir      0 2008-05-17 21:27 database
-rw-r--r--  1 root   root        0 2008-05-17 17:09 notify_on_release
-rw-r--r--  1 root   root        0 2008-05-17 17:09 releasable
-rw-r--r--  1 root   root        0 2008-05-17 17:09 release_agent
-rwxrwxrwx  1 root   root        0 2008-05-17 21:10 tasks

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@30 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoImplement multiple mount point support
Balbir Singh [Sat, 17 May 2008 11:38:53 +0000 (11:38 +0000)] 
Implement multiple mount point support

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@29 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoRemove merge comments and left overs from previous merge
Balbir Singh [Sun, 11 May 2008 11:25:38 +0000 (11:25 +0000)] 
Remove merge comments and left overs from previous merge

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@27 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoMerge with Dhaval's branch
Balbir Singh [Sun, 11 May 2008 10:27:04 +0000 (10:27 +0000)] 
Merge with Dhaval's branch

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@26 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agochown recursive routines need to return zero on success
Balbir Singh [Mon, 21 Apr 2008 10:46:09 +0000 (10:46 +0000)] 
chown recursive routines need to return zero on success

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@19 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoMiscellaneous scripts and libcg bug fixes
Balbir Singh [Fri, 18 Apr 2008 05:34:12 +0000 (05:34 +0000)] 
Miscellaneous scripts and libcg bug fixes

Turn off -DDEBUG in Makefile

Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@18 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agouse getgrnam() for groups
Balbir Singh [Wed, 16 Apr 2008 11:59:32 +0000 (11:59 +0000)] 
use getgrnam() for groups

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@17 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoFixed an initscripts problem. Comments were not ignored in the second
Balbir Singh [Wed, 16 Apr 2008 11:29:24 +0000 (11:29 +0000)] 
Fixed an initscripts problem. Comments were not ignored in the second
level configuration file (i.e. cpu.conf)

 wlm |   65 ++++++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 34 insertions(+), 31 deletions(-)

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@16 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years ago api.c | 23 +++++++++++++++--------
Balbir Singh [Wed, 16 Apr 2008 10:53:55 +0000 (10:53 +0000)] 
 api.c              |   23 +++++++++++++++--------
 libcg.h            |    4 ++--
 tests/libcg_ba.cpp |    2 +-

Added additional parameters for create and destroy cgroup. Fixed a cg_init
segfault (faulty, if-else check)

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@15 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoAdd init scripts and a README. NOTE: These init scripts will change
Balbir Singh [Mon, 14 Apr 2008 21:11:40 +0000 (21:11 +0000)] 
Add init scripts and a README. NOTE: These init scripts will change
frequently and drastically.

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@14 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoGot recursive chown to work. API needs more changes to be able to ignore
Balbir Singh [Sat, 12 Apr 2008 05:17:30 +0000 (05:17 +0000)] 
Got recursive chown to work. API needs more changes to be able to ignore
ownership arguments.

 api.c |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@13 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoSeveral bug fixes, some API enhancements.
Balbir Singh [Fri, 11 Apr 2008 19:38:06 +0000 (19:38 +0000)] 
Several bug fixes, some API enhancements.
The first basic acceptance test is under development and first
prototype is released

 api.c              |  161 +++++++++++++++++++++++++++++++++++++++++++----------
 libcg.h            |   14 +---
 tests/Makefile     |    9 ++
 tests/libcg_ba.cpp |  127 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 274 insertions(+), 37 deletions(-)

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@12 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoMiscellaneous changes, some coding style fixes and refactoring of code.
Balbir Singh [Thu, 10 Apr 2008 11:56:33 +0000 (11:56 +0000)] 
Miscellaneous changes, some coding style fixes and refactoring of code.
Also added a install/uninstall target

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@9 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoThis patch fixes file handle leaks as noticed by Paul Menage.
Balbir Singh [Thu, 10 Apr 2008 11:37:35 +0000 (11:37 +0000)] 
This patch fixes file handle leaks as noticed by Paul Menage.

Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@8 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoThis patch modifies libcg to use the new cgroup data structure.
Balbir Singh [Mon, 7 Apr 2008 13:27:39 +0000 (13:27 +0000)] 
This patch modifies libcg to use the new cgroup data structure.

Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
The code is yet to be tested though

git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@7 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoCreate balbir's branch
Balbir Singh [Mon, 7 Apr 2008 13:23:26 +0000 (13:23 +0000)] 
Create balbir's branch

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@6 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoDhaval's API changes, phase 1, prototype
Balbir Singh [Sat, 5 Apr 2008 13:33:32 +0000 (13:33 +0000)] 
Dhaval's API changes, phase 1, prototype

git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@4 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoMoved src to trunk and created tags and branches
Balbir Singh [Tue, 1 Apr 2008 17:18:25 +0000 (17:18 +0000)] 
Moved src to trunk and created tags and branches

git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@2 4f4bb910-9a46-0410-90c8-c897d4f1cd53

17 years agoFirst initial revision. Look for TODOs and BUGs
Balbir Singh [Wed, 19 Mar 2008 14:53:07 +0000 (14:53 +0000)] 
First initial revision. Look for TODOs and BUGs

git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/src@1 4f4bb910-9a46-0410-90c8-c897d4f1cd53