shithub: lwext4

Download patch

ref: 1a812a02d49e19f5299bff04705a37d23c366be2
parent: 7a6821a6ec64873b3220cffee3b96d2e8e08ee15
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Thu Oct 29 05:23:45 EDT 2015

Add ext4_dir_checksum_verify prototype

--- a/lwext4/ext4_dir.h
+++ b/lwext4/ext4_dir.h
@@ -162,6 +162,15 @@
 		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