Skip to content
  • Amir Goldstein's avatar
    ovl: verify whiteout index entries on mount · 7db25d36
    Amir Goldstein authored
    
    
    Whiteout index entries are used as an indication that an exported
    overlay file handle should be treated as stale (i.e. after unlink
    of the overlay inode).
    
    Check on mount that whiteout index entries have a name that looks like
    a valid file handle and cleanup invalid index entries.
    
    For whiteout index entries, do not check that they also have valid
    origin fh and nlink xattr, because those xattr do not exist for a
    whiteout index entry.
    
    Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    7db25d36