Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@virtuozzo.com>2017-04-10 14:02:00 +0300
committerAndrei Vagin <avagin@virtuozzo.com>2017-04-11 09:01:11 +0300
commit5e3509ba1649a5a7a5b6cd807dc672d08fa696f0 (patch)
tree822982bc519196d71125483bb85d23a8a14840a8 /images/sk-unix.proto
parentfe974169a56bec09d36f83485ca7b5a595ae4794 (diff)
crit: Decode some numbers into strings
There are several places in image files, where we store integers, but these numbers actually mean some string. E.g. socket families, states and types and tasks states. So here's the (criu).dict option for such fields that helps to convert the numbers into strings and back. Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'images/sk-unix.proto')
-rw-r--r--images/sk-unix.proto4
1 files changed, 2 insertions, 2 deletions
diff --git a/images/sk-unix.proto b/images/sk-unix.proto
index 3026214bf..8c0176beb 100644
--- a/images/sk-unix.proto
+++ b/images/sk-unix.proto
@@ -24,8 +24,8 @@ message unix_sk_entry {
*/
required uint32 id = 1;
required uint32 ino = 2;
- required uint32 type = 3;
- required uint32 state = 4;
+ required uint32 type = 3 [(criu).dict = "sk"];
+ required uint32 state = 4 [(criu).dict = "sk"];
required uint32 flags = 5 [(criu).hex = true];
required uint32 uflags = 6 [(criu).hex = true];
required uint32 backlog = 7;