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
path: root/lib
diff options
context:
space:
mode:
authorNicolas Viennot <Nicolas.Viennot@twosigma.com>2019-12-19 02:32:32 +0300
committerAndrei Vagin <avagin@gmail.com>2020-03-27 19:36:20 +0300
commitc1e72aa936bd86fb4cd819e84791e8a9a5c4d572 (patch)
tree9aef25e4244481d378ed253fef346ed5ed1a3860 /lib
parent5dbc24b206cd365db7498dddcd03798c5d8ed4e4 (diff)
memfd: add file support
See "man memfd_create" for more information of what memfd is. This adds support for memfd open files, that are not not memory mapped. * We add a new kind of file: MEMFD. * We add two image types MEMFD_FILE, and MEMFD_INODE. MEMFD_FILE contains usual file information (e.g., position). MEMFD_INODE contains the memfd name, and a shmid identifier referring to the content. * We reuse the shmem facilities for dumping memfd content as it would be easier to support incremental checkpoints in the future. Signed-off-by: Nicolas Viennot <Nicolas.Viennot@twosigma.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/py/images/images.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/py/images/images.py b/lib/py/images/images.py
index 3eedfca69..dca080657 100644
--- a/lib/py/images/images.py
+++ b/lib/py/images/images.py
@@ -522,6 +522,8 @@ handlers = {
'AUTOFS': entry_handler(pb.autofs_entry),
'FILES': entry_handler(pb.file_entry),
'CPUINFO': entry_handler(pb.cpuinfo_entry),
+ 'MEMFD_FILE': entry_handler(pb.memfd_file_entry),
+ 'MEMFD_INODE': entry_handler(pb.memfd_inode_entry),
}