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.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.h')
| -rw-r--r-- | include/ext4.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ext4.h b/include/ext4.h index 4bf31ac..bf6e101 100644 --- a/include/ext4.h +++ b/include/ext4.h @@ -122,9 +122,12 @@ int ext4_device_register(struct ext4_blockdev *bd, struct ext4_bcache *bc, * - / * - /my_partition/ * - /my_second_partition/ + * @param read_only mount as read-only mode. * * @return standard error code */ -int ext4_mount(const char *dev_name, const char *mount_point); +int ext4_mount(const char *dev_name, + const char *mount_point, + bool read_only); /**@brief Umount operation. * @param mount_point mount name |
