Changeset af4ecb76 in mainline for uspace/lib/device/src/hr.c
- Timestamp:
- 2025-05-07T11:01:14Z (5 weeks ago)
- Children:
- 155d34f
- Parents:
- fc265b4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/device/src/hr.c
rfc265b4 raf4ecb76 31 31 */ 32 32 /** 33 * @file 33 * @file HelenRAID client API 34 34 */ 35 35 … … 44 44 #include <str.h> 45 45 46 /** Initialize server session. 47 * 48 * @param rhr Place to store inited session 49 * 50 * @return EOK on success or an error code 51 */ 46 52 errno_t hr_sess_init(hr_t **rhr) 47 53 { … … 79 85 } 80 86 87 /** Destroy server session. 88 * 89 * @param hr Session to destroy 90 */ 81 91 void hr_sess_destroy(hr_t *hr) 82 92 { … … 88 98 } 89 99 100 /** Create volume. 101 * 102 * @param hr Server session 103 * @param hr_config Config to create from 104 * 105 * @return EOK on success or an error code 106 */ 90 107 errno_t hr_create(hr_t *hr, hr_config_t *hr_config) 91 108 { … … 112 129 } 113 130 131 /** Assemble volumes. 132 * 133 * @param hr Server session 134 * @param hr_config Config to assemble from 135 * @param rassembled_cnt Place to store assembled count 136 * 137 * @return EOK on success or an error code 138 */ 114 139 errno_t hr_assemble(hr_t *hr, hr_config_t *hr_config, size_t *rassembled_cnt) 115 140 { … … 148 173 } 149 174 175 /** Automatically assemble volumes. 176 * 177 * @param hr Server session 178 * @param rassembled_cnt Place to store assembled count 179 * 180 * @return EOK on success or an error code 181 */ 150 182 errno_t hr_auto_assemble(hr_t *hr, size_t *rassembled_cnt) 151 183 { … … 260 292 } 261 293 294 /** Stop/deactivate volume. 295 * 296 * @param hr Server session 297 * @param devname Volume name 298 * 299 * @return EOK on success or an error code 300 */ 262 301 errno_t hr_stop(hr_t *hr, const char *devname) 263 302 { … … 282 321 } 283 322 323 /** Stop/deactivate all volumes. 324 * 325 * @param hr Server session 326 * 327 * @return EOK on success or an error code 328 */ 284 329 errno_t hr_stop_all(hr_t *hr) 285 330 { … … 299 344 } 300 345 346 /** Fail an extent in volume. 347 * 348 * @param hr Server session 349 * @param volume_name Volume name 350 * @param extent Extent index to fail 351 * 352 * @return EOK on success or an error code 353 */ 301 354 errno_t hr_fail_extent(hr_t *hr, const char *volume_name, unsigned long extent) 302 355 { … … 321 374 } 322 375 376 /** Add a hotspare to volume. 377 * 378 * @param hr Server session 379 * @param volume_name Volume name 380 * @param hotspare Hotspare service name 381 * 382 * @return EOK on success or an error code 383 */ 323 384 errno_t hr_add_hotspare(hr_t *hr, const char *volume_name, const char *hotspare) 324 385 { … … 347 408 } 348 409 410 /** Print state of volumes. 411 * 412 * @param hr Server session 413 * 414 * @return EOK on success or an error code 415 */ 349 416 errno_t hr_print_status(hr_t *hr) 350 417 {
Note:
See TracChangeset
for help on using the changeset viewer.