Re: [PATCH v2] erofs-utils: mkfs: support set fingerprint for tar sort=none mode

Gao Xiang <[email protected]>
Newsgroups org.ozlabs.lists.linux-erofs
Message-ID <[email protected]>

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 <[email protected]>
> Reviewed-by: Friendy Su <[email protected]>
> Reviewed-by: Daniel Palmer <[email protected]>

Thanks, will apply.

Thanks,
Gao Xiang
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.