[PATCH] Add a 'trigger' callback on struct cftype.

Paul Menage menage at google.com
Tue Mar 11 09:00:41 PDT 2008


On Tue, Mar 11, 2008 at 8:21 AM, Pavel Emelyanov <xemul at openvz.org> wrote:
> If the patch with max_usage for res_counter will be accepted we'll have
>  two :) files, that a event-triggers essentially, i.e. they don't care
>  what the user actually write to then, but are interested in the writing
>  by its own.
>
>  So the proposal is to make cgroups infrastructure handle this case.

This could be useful, but in the case of force_empty don't we lose the
ability to report an error (EBUSY?) in the event that the cgroup still
has tasks?

Paul


More information about the Containers mailing list