diff options
| author | gkostka <kostka.grzegorz@gmail.com> | 2017-02-17 00:54:06 +0100 |
|---|---|---|
| committer | gkostka <kostka.grzegorz@gmail.com> | 2017-02-17 00:54:06 +0100 |
| commit | 406d9c3c653b53f4202f0de3f9b3e8a0a1eec70c (patch) | |
| tree | 199dbea7d56001d3e6cf297d77204e2f31b65789 /include/ext4.h | |
| parent | ec5adbc6757768592da6917a07f6bc1c588ad2f8 (diff) | |
ext4: add block device unregister by name & all methods
Diffstat (limited to 'include/ext4.h')
| -rw-r--r-- | include/ext4.h | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/include/ext4.h b/include/ext4.h index ec74689..41b2eae 100644 --- a/include/ext4.h +++ b/include/ext4.h @@ -108,25 +108,38 @@ typedef struct ext4_dir { /********************************MOUNT OPERATIONS****************************/ -/**@brief Register a block device to a name. - * @warning Block device has to be filled by - * Block cache may by created automatically when bc parameter is NULL. - * @param bd block device - * @param bd block device cache - * @param dev_name register name - * @param standard error code*/ +/**@brief Register block device. + * + * @param bd Block device. + * @param bd Block device cache. + * @param dev_name Block device name. + * + * @return Standard error code.*/ int ext4_device_register(struct ext4_blockdev *bd, struct ext4_bcache *bc, const char *dev_name); +/**@brief Un-register block device. + * + * @param dev_name Block device name. + * + * @return Standard error code.*/ +int ext4_device_unregister(const char *dev_name); + +/**@brief Un-register all block devices. + * + * @return Standard error code.*/ +int ext4_device_unregister_all(void); + /**@brief Mount a block device with EXT4 partition to the mount point. - * @param dev_name block device name (@ref ext4_device_register) - * @param mount_point mount point, for example + * + * @param dev_name block Device name (@ref ext4_device_register). + * @param mount_point Mount point, for example: * - / * - /my_partition/ * - /my_second_partition/ * @param read_only mount as read-only mode. * - * @return standard error code */ + * @return Standard error code */ int ext4_mount(const char *dev_name, const char *mount_point, bool read_only); |
