BioInitialize
Function Definition
Initializes the BoostIO read/write cache service. You can select a proper working mode based on the application scenario.
Implementation
CResult BioInitialize(WorkerMode mode, ClientOptionsConfig *optConf)
Parameters
Parameter |
Data Type |
Input/Output |
Description |
|---|---|---|---|
mode |
WorkerMode |
Input |
Working mode. The options are as follows:
|
optConf |
ClientOptionsConfig* |
Input |
BoostIO initialization options. For details, see Table 2. |
Parameter |
Structure Field |
Description |
|---|---|---|
ClientOptionsConfig |
logType |
Log type.
This field is valid only in separated mode. |
logFilePath |
Log file output path. This field is valid only in separated mode. Ensure that the input log path is accessible. |
|
enable |
Security option.
|
|
certificationPath |
Client certificate path. Input a valid path for security enablement. |
|
caCerPath |
CA certificate path. Input a valid path for security enablement. |
|
caCrlPath |
(Optional) Certificate revocation list (CRL) file path. |
|
privateKeyPath |
Path to the private key file of the client certificate. Input a valid path for security enablement. |
|
privateKeyPassword |
Path to the private key password file of the client certificate. Input a valid path for security enablement. |
|
hseKfsMasterPath |
Path to the master root key of the private key password of the client certificate. Input a valid path for security enablement. |
|
hseKfsStandbyPath |
Path to the standby root key of the private key password of the client certificate. Input a valid path for security enablement. |
Return Values
Return Value |
Description |
|---|---|
RET_CACHE_OK |
The operation is successful. |
RET_CACHE_ERROR |
The operation failed. |