From 1a812a02d49e19f5299bff04705a37d23c366be2 Mon Sep 17 00:00:00 2001 From: ngkaho1234 Date: Thu, 29 Oct 2015 09:23:45 +0000 Subject: [PATCH] Add ext4_dir_checksum_verify prototype --- lwext4/ext4_dir.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lwext4/ext4_dir.h b/lwext4/ext4_dir.h index c2ca270..b985080 100644 --- a/lwext4/ext4_dir.h +++ b/lwext4/ext4_dir.h @@ -162,6 +162,15 @@ static inline void ext4_dir_entry_ll_set_inode_type( de->in.inode_type = type; } +/**@brief Verify checksum of a linear directory leaf block + * @param inode_ref Directory i-node + * @param dirent Linear directory leaf block + * @return true means the block passed checksum verification + */ +bool +ext4_dir_checksum_verify(struct ext4_inode_ref *inode_ref, + struct ext4_directory_entry_ll *dirent); + /**@brief Initialize directory iterator. * Set position to the first valid entry from the required position. * @param it Pointer to iterator to be initialized