diff options
| author | ngkaho1234 <ngkaho1234@gmail.com> | 2016-01-30 23:26:22 +0800 |
|---|---|---|
| committer | ngkaho1234 <ngkaho1234@gmail.com> | 2016-01-30 23:26:22 +0800 |
| commit | 8929c98e42e81dce0b00d03a1c7b2f45ee85fe87 (patch) | |
| tree | 4105a1ca03e0c61983402e087d600e973e43faa9 /include/ext4_fs.h | |
| parent | 9b40d089d6cf5912b558dd3e0ca1a246baa6750a (diff) | |
ext4: add read_only parameter to ext4_mount routine.
Now users can mount a filesystem as read-only mode explicitly.
Diffstat (limited to 'include/ext4_fs.h')
| -rw-r--r-- | include/ext4_fs.h | 4 |
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 |
