[PATCH v2] erofs-utils: mkfs: support set fingerprint for tar sort=none mode
Gao Xiang
hsiangkao at linux.alibaba.com
Wed Apr 22 18:16:58 AEST 2026
On 2026/4/22 15:37, Yuezhang Mo wrote:
> If "--tar=f" and "--sort=none" are enabled, ->datasource will be set
> to "EROFS_INODE_DATA_SOURCE_NONE".
>
> In erofs_mkfs_begin_nondirectory(), erofs_set_inode_fingerprint() is
> only be called if ->datasource is EROFS_INODE_DATA_SOURCE_LOCALPATH
> or EROFS_INODE_DATA_SOURCE_DISKBUF.
>
> EROFS_INODE_DATA_SOURCE_NONE means that metadata is done and mkfs
> dump will change nothing, so use erofs_setxattr() to set fingerprint
> at settings ->datasource to EROFS_INODE_DATA_SOURCE_NONE.
>
> Signed-off-by: Yuezhang Mo <Yuezhang.Mo at sony.com>
> Reviewed-by: Friendy Su <friendy.su at sony.com>
> Reviewed-by: Daniel Palmer <daniel.palmer at sony.com>
Thanks, will apply.
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list