diff options
author | Nicolas Viennot <Nicolas.Viennot@twosigma.com> | 2019-12-19 02:32:32 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2020-03-27 19:36:20 +0300 |
commit | c1e72aa936bd86fb4cd819e84791e8a9a5c4d572 (patch) | |
tree | 9aef25e4244481d378ed253fef346ed5ed1a3860 /lib | |
parent | 5dbc24b206cd365db7498dddcd03798c5d8ed4e4 (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.py | 2 |
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), } |