]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Return ECGROUPNOTEQUAL to indicate partial create success
authorEric Brower <ebrower@gmail.com>
Tue, 27 Jul 2010 05:49:16 +0000 (22:49 -0700)
committerDhaval Giani <dhaval.giani@gmail.com>
Tue, 27 Jul 2010 08:34:38 +0000 (10:34 +0200)
commitc2abab92e43fa60a3c69ec533ef2ca7d4944cc8e
tree7db72402c627a00a87bb4f4eef00231df8a6617d
parent023fee998f07499938830a044845eb03b816eea7
Return ECGROUPNOTEQUAL to indicate partial create success

Return ECGROUPNOTEQUAL when copying controller parameters fails--
this allows callers to differentiate between cgroup creation failures and
controller configuration failures, and makes explicit that this function
can return an error code but still have created the cgroup.  Callers,
such as cgroup_create_cgroup_from_parent(), can now explicitly ignore
(the unfortunately expected) controller configuration errors.

Signed-off-by: Eric Brower <ebrower@gmail.com>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
src/api.c