Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle overlay xattr opaque bit #538

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 1, 2024

  1. fix: handle overlay xattr opaque bit

    Current behavior determines if a path is a whiteout if a overlay char
    dev is present.
    
    Additionally, also check the extended attrs.
    
    For files, this is not important: if a file /foo/bar exists in
    some two layers, then the higher layer's version will replace
    the lower layer's version whether or not the opaque bit is set.
    
    However, directories behave differently.  If /foo exists in two
    layers and no opaque bit is set, then we see the union of their
    contents.  But if the opaque bit is set on the higher layer's
    version, then we should not see the lower layer's version.
    
    So, in that case, create a whiteout /.wh_foo.
    
    Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
    rchincha committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    3db0591 View commit details
    Browse the repository at this point in the history