[CRIU] [PATCH 2/3] protobuf: Add ns.proto
Cyrill Gorcunov
gorcunov at openvz.org
Tue May 14 16:47:55 EDT 2013
On Wed, May 15, 2013 at 12:39:54AM +0400, Pavel Emelyanov wrote:
> On 05/13/2013 01:29 PM, Cyrill Gorcunov wrote:
> >
> > We will need this enum for both -- plain namespaces
> > handling and procfs ns entries.
> >
> > Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> > ---
> > protobuf/Makefile | 1 +
> > protobuf/ns.proto | 8 ++++++++
> > 2 files changed, 9 insertions(+)
> > create mode 100644 protobuf/ns.proto
>
> As I told -- I don't see much sense in having another set
> of integers describing namespaces. CLONE_ flags are enough.
These integers are sequently assigned, ie we can use them as
indices and we do. With CLONE_ flags you can't do that. As
you might see in firther patches I use this enum and array
index which is quite convenient.
More information about the CRIU
mailing list