diff options
author | Darrick J. Wong <djwong@us.ibm.com> | 2012-04-29 18:35:10 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-04-29 18:35:10 -0400 |
commit | fa77dcfafeaa6bc73293c646bfc3d5192dcf0be2 (patch) | |
tree | 66c4232c2e5c1f59666e05164b77539a9b1dd290 /fs/ext4/ext4.h | |
parent | 41a246d1ff75a95d2be3191ca6e6db139dc0f430 (diff) |
ext4: calculate and verify block bitmap checksum
Compute and verify the checksum of the block bitmap; this checksum is
stored in the block group descriptor.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 7f0ff88f32ba..7a4f16075257 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -1857,8 +1857,18 @@ void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group, | |||
1857 | int ext4_inode_bitmap_csum_verify(struct super_block *sb, ext4_group_t group, | 1857 | int ext4_inode_bitmap_csum_verify(struct super_block *sb, ext4_group_t group, |
1858 | struct ext4_group_desc *gdp, | 1858 | struct ext4_group_desc *gdp, |
1859 | struct buffer_head *bh, int sz); | 1859 | struct buffer_head *bh, int sz); |
1860 | void ext4_block_bitmap_csum_set(struct super_block *sb, ext4_group_t group, | ||
1861 | struct ext4_group_desc *gdp, | ||
1862 | struct buffer_head *bh, int sz); | ||
1863 | int ext4_block_bitmap_csum_verify(struct super_block *sb, ext4_group_t group, | ||
1864 | struct ext4_group_desc *gdp, | ||
1865 | struct buffer_head *bh, int sz); | ||
1860 | 1866 | ||
1861 | /* balloc.c */ | 1867 | /* balloc.c */ |
1868 | extern void ext4_validate_block_bitmap(struct super_block *sb, | ||
1869 | struct ext4_group_desc *desc, | ||
1870 | unsigned int block_group, | ||
1871 | struct buffer_head *bh); | ||
1862 | extern unsigned int ext4_block_group(struct super_block *sb, | 1872 | extern unsigned int ext4_block_group(struct super_block *sb, |
1863 | ext4_fsblk_t blocknr); | 1873 | ext4_fsblk_t blocknr); |
1864 | extern ext4_grpblk_t ext4_block_group_offset(struct super_block *sb, | 1874 | extern ext4_grpblk_t ext4_block_group_offset(struct super_block *sb, |