• Pavel Emelyanov's avatar
    files: Support dumping/restoring of completely unlinked files · a1ccfb92
    Pavel Emelyanov authored
    Completely unlinked file is the one with n_link count being zero.
    Such files only allow to read their contents and carry with us.
    
    In order to dump this thing I introduce the "path remap" technology.
    For reg file a remapping entry is dumped which describes, that at
    restore stage before opening a regfile->path this path should be
    linked to some other name and then (after open) unlinked.
    
    For completely unlinked files the remap path would be a path to
    a "ghost" file, i.e. a file which is created only at the time of
    restore and which is removed completely at the end of it.
    
    Partially unlinked files (i.e. those having n_link != 0, but a
    path by which we see them in someone's fd is not accessible) should
    be handled in another way.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    a1ccfb92
Name
Last commit
Last update
..
atomic.h Loading commit data...
bitops.h Loading commit data...
compiler.h Loading commit data...
crtools.h Loading commit data...
file-ids.h Loading commit data...
files.h Loading commit data...
image.h Loading commit data...
inet_diag.h Loading commit data...
ipc_ns.h Loading commit data...
kcmp-ids.h Loading commit data...
libnetlink.h Loading commit data...
list.h Loading commit data...
lock.h Loading commit data...
log.h Loading commit data...
memcpy_64.h Loading commit data...
namespaces.h Loading commit data...
parasite-syscall.h Loading commit data...
parasite.h Loading commit data...
proc_parse.h Loading commit data...
processor-flags.h Loading commit data...
ptrace.h Loading commit data...
rbtree.h Loading commit data...
restorer-log.h Loading commit data...
restorer.h Loading commit data...
sockets.h Loading commit data...
syscall-codes.h Loading commit data...
syscall.h Loading commit data...
sysctl.h Loading commit data...
types.h Loading commit data...
unix_diag.h Loading commit data...
util-net.h Loading commit data...
util.h Loading commit data...
uts_ns.h Loading commit data...