summaryrefslogtreecommitdiff
path: root/include/ext4_fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ext4_fs.h')
-rw-r--r--include/ext4_fs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ext4_fs.h b/include/ext4_fs.h
index 97e1d1d..473929d 100644
--- a/include/ext4_fs.h
+++ b/include/ext4_fs.h
@@ -93,9 +93,11 @@ static inline ext4_fsblk_t ext4_fs_first_bg_block_no(struct ext4_sblock *s,
/**@brief Initialize filesystem and read all needed data.
* @param fs Filesystem instance to be initialized
* @param bdev Identifier if device with the filesystem
+ * @param read_only Mark the filesystem as read-only.
* @return Error code
*/
-int ext4_fs_init(struct ext4_fs *fs, struct ext4_blockdev *bdev);
+int ext4_fs_init(struct ext4_fs *fs, struct ext4_blockdev *bdev,
+ bool read_only);
/**@brief Destroy filesystem instance (used by unmount operation).
* @param fs Filesystem to be destroyed