erofs: support superblock checksum
authorPratik Shinde <pratikshinde320@gmail.com>
Mon, 4 Nov 2019 02:49:37 +0000 (10:49 +0800)
committerGao Xiang <gaoxiang25@huawei.com>
Sun, 24 Nov 2019 03:02:41 +0000 (11:02 +0800)
commitb858a4844cfba3d90a8d8ffd3a04d9557f76b60f
treee6f4c00ffe6fdd09fd393910f444c7bad2682d36
parenta93f8c36877b2ae9ba0ca07eda1933944dc5bcb8
erofs: support superblock checksum

Introduce superblock checksum feature in order to
check at mounting time.

Note that the first 1024 bytes are ignore for x86
boot sectors and other oddities.

Link: https://lore.kernel.org/r/20191104024937.113939-1-gaoxiang25@huawei.com
Signed-off-by: Pratik Shinde <pratikshinde320@gmail.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
fs/erofs/Kconfig
fs/erofs/erofs_fs.h
fs/erofs/internal.h
fs/erofs/super.c