ext4_journal: journal write skeleton code.
[lwext4.git] / lwext4 / ext4.h
index 40f0f30e8f5e9b7823f541eabea6a8248958b45e..208ddb9a99b916b0529739e73f59c798d090e361 100644 (file)
@@ -182,6 +182,13 @@ int ext4_mount(const char *dev_name, const char *mount_point);
  * @return  standard error code */
 int ext4_umount(const char *mount_point);
 
+
+/**@brief   Journal recovery.
+ * @param   mount_point mount point
+ * @warning Must be called after @ref ext4_mount
+ * @return standard error code */
+int ext4_recover(const char *mount_point);
+
 /**@brief   Some of the filesystem stats.*/
 struct ext4_mount_stats {
        uint32_t inodes_count;
@@ -311,8 +318,7 @@ int ext4_fclose(ext4_file *f);
  * @param   ret_ino the inode id of the path
  * @param   ext4_inode buffer
  * @return  standard error code*/
-int ext4_fill_raw_inode(const char *path,
-                       uint32_t *ret_ino,
+int ext4_fill_raw_inode(const char *path, uint32_t *ret_ino,
                        struct ext4_inode *inode);
 
 /**@brief   File truncate function.