BioAllocCacheSpace
Function Definition
Applies for cache space. This interface is used together with copy-free write.
Implementation
CResult BioAllocCacheSpace(uint64_t tenantId, uint64_t objectId, uint64_t length, CacheSpaceDesc *space)
Parameters
Parameter |
Data Type |
Input/Output |
Description |
|---|---|---|---|
tenantId |
uint64_t |
Input |
Tenant ID. |
objectId |
uint64_t |
Input |
Object ID. |
length |
uint64_t |
Input |
Length of the cache space to be applied for. The maximum value is 4,194,304 bytes (4 MB). |
space |
CacheSpaceDesc* |
Output |
Cache space information description:
|
Return Values
Return Value |
Description |
|---|---|
RET_CACHE_OK |
The operation is successful. |
RET_CACHE_NOT_FOUND |
The cache instance is not found. |
RET_CACHE_NOT_READY |
The BoostIO service is not ready. |
RET_CACHE_NEED_RETRY |
A retry is required. |
RET_CACHE_PT_FAULT |
The object location cannot be written due to a partition error. |
RET_CACHE_ERROR |
The operation failed. |