[CRIU] [PATCH 3/9] protobuf: Prepare scaffolds for procfs NS entries
Pavel Emelyanov
xemul at parallels.com
Fri May 17 09:58:13 EDT 2013
On 05/17/2013 05:20 PM, Cyrill Gorcunov wrote:
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
> cr-show.c | 6 ++++++
> image.c | 1 +
> include/crtools.h | 2 ++
> include/magic.h | 1 +
> include/protobuf.h | 1 +
> protobuf.c | 2 ++
> protobuf/Makefile | 1 +
> protobuf/fdinfo.proto | 1 +
> protobuf/ns.proto | 15 +++++++++++++++
> 9 files changed, 30 insertions(+)
> create mode 100644 protobuf/ns.proto
>
> @@ -0,0 +1,15 @@
> +enum ns_types {
> + NET = 0;
> + UTS = 1;
> + IPC = 2;
> + PID = 3;
> + USER = 4;
> + MNT = 5;
> +}
> +
> +message ns_file_entry {
> + required uint32 id = 1;
> + required uint32 ns_id = 2;
> + required ns_types type = 3;
This field should contain respective CLONE_FLAG, not some yet another IDx for namespace.
> + required uint32 flags = 4;
> +}
More information about the CRIU
mailing list