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-06-30 13:57:22 +0300
committerPavel Emelyanov <xemul@virtuozzo.com>2017-08-09 18:51:39 +0300
commitfe6fa3bec3249393c9cd2ead0d095e2bb9d92dad (patch)
tree0839c36e937b89cd42d189cbbb0b3d6a570b2ac9 /images/fdinfo.proto
parent904e7b383b8c9a420f5068e74070ce72855c48f4 (diff)
image: Introduce files.img and file_entry
There are two goals of this merge. First is to reduce the amount of image files we generate and scan on restore. The latter is more importaint, as even if we have no weird stuff like signalfd, we still try to open this file. So after the merge we try to open ~15 image files (out of ~30) less %) which is nice. The 2nd goal is to simplify the C/R support for SCM messages. This becomes possible with the fact, that all files we have can be distinguished by their ID only, w/o type. This, in turn, makes image layout for SCMs much simpler. Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'images/fdinfo.proto')
-rw-r--r--images/fdinfo.proto5
1 files changed, 5 insertions, 0 deletions
diff --git a/images/fdinfo.proto b/images/fdinfo.proto
index 56506690c..86e39c19e 100644
--- a/images/fdinfo.proto
+++ b/images/fdinfo.proto
@@ -27,3 +27,8 @@ message fdinfo_entry {
required fd_types type = 3;
required uint32 fd = 4;
}
+
+message file_entry {
+ required fd_types type = 1;
+ required uint32 id = 2;
+}