• Pavel Emelyanov's avatar
    mount: Restore external bind-mounts with plugins · c18b30d0
    Pavel Emelyanov authored
    All the entries with with_plugin set will be mounted by plugin.
    The interesting case is when we do the pivot-root restore. In this
    case we call restore callback very early (before we unmount the old
    tree) and ask it to create the mountpoint at temporary location.
    Later we move the mount to proper place.
    
    The old_root argument of the callback is where it can find files
    in the original mount namespace.
    
    The is_file is return-argument. Sine files and directories cannot be
    bind-mounted to each-other, the callback should create the mountpoint
    itself and report whether it created file or directory.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    c18b30d0
proc_parse.h 3.76 KB