• Amir Goldstein's avatar
    ovl: introduce data-only lower layers · 37ebf056
    Amir Goldstein authored
    Introduce the format lowerdir=lower1:lower2::lowerdata1::lowerdata2
    where the lower layers on the right of the :: separators are not merged
    into the overlayfs merge dirs.
    
    Data-only lower layers are only allowed at the bottom of the stack.
    
    The files in those layers are only meant to be accessible via absolute
    redirect from metacopy files in lower layers.  Following changes will
    implement lookup in the data layers.
    
    This feature was requested for composefs ostree use case, where the
    lower data layer should only be accessiable via absolute redirects
    from metacopy inodes.
    
    The lower data layers are not required to a have a unique uuid or any
    uuid at all, because they are never used to compose the overlayfs inode
    st_ino/st_dev.
    Reviewed-by: default avatarAlexander Larsson <alexl@redhat.com>
    Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    37ebf056
namei.c 29 KB