Merge images with different files into one

Submitted by Pavel Emelianov on June 30, 2017, 10:55 a.m.

Details

Reviewer None
Submitted June 30, 2017, 10:55 a.m.
Last Updated June 30, 2017, 11:12 p.m.
Revision 1

Cover Letter

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.
  

Revisions

SERIES REVISION LOOKS STRANGE. Please double-check patch list and the ordering before proceeding.

Patches download mbox

# Name Submitter State
[01/22] image: Fix "collect happenned" flag Pavel Emelianov Accepted
[02/22] unix: Move stale unlink into post-prep Pavel Emelianov Accepted
[03/22] fsnotofy: Do remap resolve in post-prep Pavel Emelianov Accepted
[04/22] pb: Add a helper to collect single entry Pavel Emelianov Accepted
[05/22] file: Introduce prepare_files() Pavel Emelianov Accepted
[06/22] image: Introduce files.img and file_entry Pavel Emelianov Accepted
[07/22] files: Move reg files into files image Pavel Emelianov Accepted
[08/22] files: Move inet sockets into files image Pavel Emelianov Accepted
[09/22] files: Move ns files into files image Pavel Emelianov Accepted
[10/22] files: Move packet sock into files image Pavel Emelianov Accepted
[11/22] files: Move netlink sock into files image Pavel Emelianov Accepted
[12/22] files: Move eventfd into files image Pavel Emelianov Accepted
[13/22] files: Move epoll into files image Pavel Emelianov Accepted
[14/22] files: Move signalfd into files image Pavel Emelianov Accepted
[15/22] files: Move tunfile into files image Pavel Emelianov Accepted
[16/22] files: Move timerfd into files image Pavel Emelianov Accepted
[17/22] files: Move inotify into files image Pavel Emelianov Accepted
[18/22] files: Move fanotify into files image Pavel Emelianov Accepted
[19/22] files: Move ext files into files image Pavel Emelianov Accepted
[20/22] files: Move unix sk into files image Pavel Emelianov Accepted
[21/22] files: Move fifo into files image Pavel Emelianov Accepted
[22/22] files: Move pipes into files image Pavel Emelianov Accepted

Tests