summaryrefslogtreecommitdiff
path: root/fs/erofs/internal.h
diff options
context:
space:
mode:
authorPratik Shinde <pratikshinde320@gmail.com>2019-11-04 05:49:37 +0300
committerGao Xiang <gaoxiang25@huawei.com>2019-11-24 06:02:41 +0300
commitb858a4844cfba3d90a8d8ffd3a04d9557f76b60f (patch)
treee6f4c00ffe6fdd09fd393910f444c7bad2682d36 /fs/erofs/internal.h
parenta93f8c36877b2ae9ba0ca07eda1933944dc5bcb8 (diff)
downloadlinux-b858a4844cfba3d90a8d8ffd3a04d9557f76b60f.tar.xz
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>
Diffstat (limited to 'fs/erofs/internal.h')
-rw-r--r--fs/erofs/internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h
index 0c1175a08e54..6864fa4893e9 100644
--- a/fs/erofs/internal.h
+++ b/fs/erofs/internal.h
@@ -85,6 +85,7 @@ struct erofs_sb_info {
u8 uuid[16]; /* 128-bit uuid for volume */
u8 volume_name[16]; /* volume name */
+ u32 feature_compat;
u32 feature_incompat;
unsigned int mount_opt;