• Andrey Vagin's avatar
    restore: restore pocesses which share one fdtable (v5) · 979eb2a1
    Andrey Vagin authored
    Currenly crtools supports a case when a child shared a fd table
    with parent.
    
    Here is only two interesting things.
    * Service descriptors should be cloned for each process
      who shared one fd table.
    * One task should restore files and other tasks should sleep in this
    * time.
    
    v2: * allocate fdt_lock from shared memory
        * don't wait a child, if it doesn't share fdtable
    v3: * don't move ids on the pstree image
    v4: * save ids in a separate image
        * save fdinfo per id instead of pid
    v5: fix alignment of service_fd_id
    Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    979eb2a1
files.c 12.7 KB