On Mon, Feb 21, 2011 at 2:03 PM, Jan Safranek <jsafr...@redhat.com> wrote:
> On 02/21/2011 01:57 PM, Dhaval Giani wrote:
>>
>> On Mon, Feb 21, 2011 at 1:50 PM, Jan Safranek<jsafr...@redhat.com>  wrote:
>>>
>>> On 02/07/2011 05:54 PM, Dhaval Giani wrote:
>>>>
>>>> +       if (!cgrules_config_file&&    !cgrules_config_dir) {
>>>>                cgrules_config_file = strdup(CGRULES_DEFAULT_CONFIG);
>>>>                if (!cgrules_config_file) {
>>>
>>> This decision should be made inside the library. Other apps, which use
>>> rules, would benefit from that and behave consistently.
>>>
>>
>> Did not get this exactly, this comes from the command line option, and
>> is set globally.
>
> Well, the decission what's default if nothing is specified on command line
> should be the same in cgrulesengd and cglcassify, so I am just proposing to
> add it to the cgroup_parse_rules() in the library - so it is 1) written only
> once and 2) consistent.
>

OK, so I cannot think of a clean way to do this right now. Let me add
in another patch for it once cgclassify is fixed up, and introduce a
new call.

Thanks
Dhaval

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to