• Pavel Emelyanov's avatar
    pre-dump: Collect mount info, root and nsmask · 84ebc64b
    Pavel Emelyanov authored
    Well, we want to pre-dump files (fsnotifies), for that we
    will need mountinfo-s and root, and for the latter -- the
    current ns mask.
    
    The problem with current ns mask is that its generation is
    incorporated into ns IDs generation and dumping. And since
    the ids dumping is not performed on pre-dump, let's just
    provide a helper for ns-mask generation.
    
    Strictly speaking, the whole ns-mask idea is not great, but
    it's to be fixed later.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    84ebc64b
namespaces.c 11.9 KB