X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=lwext4%2Fext4_ialloc.h;h=cea3fe6bb47f2bfdf7a9efc5860af325659fb589;hb=45d2d1fe5e93955080c8c24cab765d368402f6a2;hp=f796b615ff26a3cdafdf1cab57098e4c56790ec3;hpb=c897dc5a646527c2b87e4bc0399db59b46edbb1d;p=lwext4.git diff --git a/lwext4/ext4_ialloc.h b/lwext4/ext4_ialloc.h index f796b61..cea3fe6 100644 --- a/lwext4/ext4_ialloc.h +++ b/lwext4/ext4_ialloc.h @@ -49,6 +49,14 @@ extern "C" { #include "ext4_config.h" #include "ext4_types.h" +/**@brief Calculate and set checksum of inode bitmap. + * @param sb superblock pointer. + * @param bg block group + * @param bitmap bitmap buffer + */ +void ext4_ialloc_set_bitmap_csum(struct ext4_sblock *sb, struct ext4_bgroup *bg, + void *bitmap); + /**@brief Free i-node number and modify filesystem data structers. * @param fs Filesystem, where the i-node is located * @param index Index of i-node to be release @@ -69,6 +77,7 @@ int ext4_ialloc_alloc_inode(struct ext4_fs *fs, uint32_t *index, bool is_dir); #ifdef __cplusplus } #endif + #endif /* EXT4_IALLOC_H_ */ /**