Code format in ext4_balloc
[lwext4.git] / lwext4 / ext4_inode.h
index c86bdb6feab639cc757196973f07a02ea39749f1..7e74f88d5664b1a5e06d9fc692239222f73e045f 100644 (file)
@@ -199,6 +199,18 @@ uint32_t ext4_inode_get_generation(struct ext4_inode *inode);
  */
 void ext4_inode_set_generation(struct ext4_inode *inode, uint32_t gen);
 
+/**@brief Get extra I-node size field.
+ * @param inode      I-node
+ * @return extra I-node size
+ */
+uint16_t ext4_inode_get_extra_isize(struct ext4_inode *inode);
+
+/**@brief Set extra I-node size field.
+ * @param inode      I-node
+ * @param size       extra I-node size
+ */
+void ext4_inode_set_extra_isize(struct ext4_inode *inode, uint16_t size);
+
 /**@brief Get address of block, where are extended attributes located.
  * @param inode I-node
  * @param sb    Superblock
@@ -280,6 +292,21 @@ void ext4_inode_clear_flag(struct ext4_inode *inode, uint32_t f);
  */
 void ext4_inode_set_flag(struct ext4_inode *inode, uint32_t f);
 
+/**@brief Get inode checksum(crc32)
+ * @param sb    Superblock
+ * @param inode I-node to get checksum value from
+ */
+uint32_t
+ext4_inode_get_checksum(struct ext4_sblock *sb, struct ext4_inode *inode);
+
+/**@brief Get inode checksum(crc32)
+ * @param sb    Superblock
+ * @param inode I-node to get checksum value from
+ */
+void
+ext4_inode_set_checksum(struct ext4_sblock *sb, struct ext4_inode *inode,
+                       uint32_t checksum);
+
 /**@brief Check if i-node can be truncated.
  * @param sb    Superblock
  * @param inode I-node to check