erofs-utils: lib: set OVL_XATTR_ORIGIN for directories with whiteouts
authorJingbo Xu <jefflexu@linux.alibaba.com>
Sat, 9 Sep 2023 16:32:31 +0000 (00:32 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 11 Sep 2023 03:22:05 +0000 (11:22 +0800)
commit1d9a3368e2548970518eff6e5e83d37590d18fc1
treece7230a12b10f7d716001d43a12a0219720452dc
parent93287dd55801d5d119ea88c764621a23e163c091
erofs-utils: lib: set OVL_XATTR_ORIGIN for directories with whiteouts

Whiteouts are exposed in the overlayfs mount if these are from some
non-merged directory without OVL_XATTR_ORIGIN set on the directory.

To fix this, tag OVL_XATTR_ORIGIN (with empty value) on the parent
directory of whiteouts.

Fixes: 95d315fd7958 ("erofs-utils: introduce tarerofs")
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230909163240.42057-5-hsiangkao@linux.alibaba.com
include/erofs/internal.h
include/erofs/xattr.h
lib/inode.c
lib/tar.c
lib/xattr.c