BioAddDisk
Function Definition
Adds a drive.
Implementation
CResult BioAddDisk(const char *diskPath)
Parameters
Parameter |
Data Type |
Input/Output |
Description |
|---|---|---|---|
diskPath |
const char * |
Input |
Path to the block device to be added. The path must be valid. |
Return Values
Return Value |
Description |
|---|---|
RET_CACHE_OK |
The operation is successful. |
RET_CACHE_EPERM |
The input parameter is incorrect. |
RET_CACHE_NOT_READY |
The BoostIO service is not ready. |
RET_CACHE_PT_FAULT |
The partition is faulty. |
RET_CACHE_NEED_RETRY |
A retry is required. |
RET_CACHE_ERROR |
The operation failed. |
Parent topic: API Reference