• Darrick J. Wong's avatar
    xfs: allow xattr matching on name and value for parent pointers · f041455e
    Darrick J. Wong authored
    If a file is hardlinked with the same name but from multiple parents,
    the parent pointers will all have the same dirent name (== attr name)
    but with different parent_ino/parent_gen values.  To disambiguate, we
    need to be able to match on both the attr name and the attr value.  This
    is in contrast to regular xattrs, which are matchtg edit
    d only on name.
    
    Therefore, plumb in the ability to match shortform and local attrs on
    name and value in the XFS_ATTR_PARENT namespace.  Parent pointer attr
    values are never large enough to be stored in a remote attr, so we need
    can reject these cases as corruption.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    f041455e
xfs_attr_leaf.c 84.5 KB