summaryrefslogtreecommitdiffstats
path: root/cgconfig.c
Commit message (Collapse)AuthorAgeFilesLines
* libcgroup: Better error reporting for libcgroupDhaval Giani2008-12-091-2/+1
| | | | | | | | | | | | | | | | From: Ankita Garg <ankita@in.ibm.com> This patch adds human readable error messages to the configuration parser. The error lookup is implemented as a simple table, indexed by the error. TODO: Save errno at ECGOTHER and pass it down as cgroup_lasterror. Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Ankita Garg <ankita@in.ibm.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@228 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* libcgroup: Improve parameter checking and usage in cgconfigparserDhaval Giani2008-12-091-9/+24
| | | | | | | | | | | | | | | | From: Sripathi Kodi <sripathik@in.ibm.com> The following patch improves cgconfigparser's parameter checking and usage(). It provides: 1) Support for long options. Not really needed now, but good to have. 2) Improved usage() functionality. Signed-off-by: Sripathi Kodi <sripathik@in.ibm.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@227 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* libcgroup: Make cgconfigparser more verboseDhaval Giani2008-11-101-1/+3
| | | | | | | | | | | | | | As per http://sourceforge.net/tracker/?func=detail&atid=1043649&aid=2128139&group_id=218421 cgconfigparser was not exiting silently for wrong usage. Let's let the user know they are using wrong syntax. Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> Tested-by: Sudhir Kumar <sudhir@linux.vnet.ibm.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@221 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* Merge several bug-fixes and cleanups. No version bump yet, since this isBalbir Singh2008-10-151-1/+4
| | | | | | | | | | an ongoing exercise (after more testing, I'll recommend one). Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@216 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* Configuration rewrite to use the main cgroups API and several bug fixesBalbir Singh2008-09-291-0/+55
and configuration enhancements. Primarliy Initiated by Dhaval Giani Please see svn log of all branches/balbir-config-cleanup 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/trunk@201 4f4bb910-9a46-0410-90c8-c897d4f1cd53