[PATCH v9] erofs-utils: support calculating checksum of erofs blocks

Li Guifu blucerlee at gmail.com
Sat Nov 9 00:37:13 AEDT 2019



On 2019/10/30 14:28, Gao Xiang wrote:
> From: Pratik Shinde <pratikshinde320 at gmail.com>
> 
> Added code for calculating crc of erofs blocks (4K size).
> For now it calculates checksum of first block. but it can
> be modified to calculate crc for any no. of blocks.
> 
> Note that the first 1024 bytes are not checksumed to allow
> for the installation of x86 boot sectors and other oddities.
> 
> Fill 'feature_compat' field of erofs_super_block so that it
> can be used on kernel side. also fixing one typo.
> 
> Signed-off-by: Pratik Shinde <pratikshinde320 at gmail.com>
> Reviewed-by: Chao Yu <yuchao0 at huawei.com>
> Signed-off-by: Gao Xiang <gaoxiang25 at huawei.com>
> ---
> 
It looks good
Reviewed-by: Li Guifu <blucerlee at gmail.com>

Thanks,


More information about the Linux-erofs mailing list