libstoragemgmt_pool.h File Reference
#include "libstoragemgmt_common.h"
Go to the source code of this file.
Function Documentation
uint64_t LSM_DLL_EXPORT lsm_pool_element_type_get |
( |
lsm_pool * |
p |
) |
|
Retrieve what the pool can be used to create
- Parameters:
-
- Returns:
- Usage value
uint64_t LSM_DLL_EXPORT lsm_pool_free_space_get |
( |
lsm_pool * |
p |
) |
|
Retrieves the remaining free space in the pool.
- Parameters:
-
- Returns:
- The amount of free space.
Definition at line 605 of file lsm_datatypes.cpp.
char LSM_DLL_EXPORT* lsm_pool_id_get |
( |
lsm_pool * |
p |
) |
|
Retrieves the system wide unique identifier for the pool. Note: Returned value is only valid as long as p is valid!.
- Parameters:
-
- Returns:
- The System wide unique identifier.
Definition at line 589 of file lsm_datatypes.cpp.
char LSM_DLL_EXPORT* lsm_pool_name_get |
( |
lsm_pool * |
p |
) |
|
Retrieves the name from the pool. Note: Returned value is only valid as long as p is valid!.
- Parameters:
-
- Returns:
- The name of the pool.
int LSM_DLL_EXPORT lsm_pool_record_array_free |
( |
lsm_pool * |
pa[], |
|
|
uint32_t |
size | |
|
) |
| | |
Frees the memory for each of the pools and then the pool array itself.
- Parameters:
-
| pa | Pool array to free. |
| size | Size of the pool array. |
- Returns:
- LSM_ERR_OK on success, else error reason.
Copies a lsm_pool record
- Parameters:
-
| to_be_copied | Record to be copied |
- Returns:
- NULL on memory exhaustion, else copy.
Definition at line 529 of file lsm_datatypes.cpp.
int LSM_DLL_EXPORT lsm_pool_record_free |
( |
lsm_pool * |
p |
) |
|
Frees the memory for an individual pool
- Parameters:
-
- Returns:
- LSM_ERR_OK on success, else error reason.
Definition at line 545 of file lsm_datatypes.cpp.
uint64_t LSM_DLL_EXPORT lsm_pool_status_get |
( |
lsm_pool * |
s |
) |
|
Retrieve the status for the Pool.
- Parameters:
-
| s | Pool to retrieve status for |
- Returns:
- Pool status which is a bit sensitive field, returns UINT64_MAX on bad pool pointer.
Definition at line 613 of file lsm_datatypes.cpp.
const char LSM_DLL_EXPORT* lsm_pool_status_info_get |
( |
lsm_pool * |
s |
) |
|
Retrieve the status info for the Pool.
- Parameters:
-
| s | Pool to retrieve status for |
- Returns:
- Pool status info which is a character string.
Definition at line 621 of file lsm_datatypes.cpp.
char LSM_DLL_EXPORT* lsm_pool_system_id_get |
( |
lsm_pool * |
p |
) |
|
Retrieve the system id for the specified pool.
- Parameters:
-
- Returns:
- System ID
Definition at line 629 of file lsm_datatypes.cpp.
uint64_t LSM_DLL_EXPORT lsm_pool_total_space_get |
( |
lsm_pool * |
p |
) |
|
Retrieves the total space for the pool.
- Parameters:
-
- Returns:
- Total space of the pool.
Definition at line 597 of file lsm_datatypes.cpp.
uint64_t LSM_DLL_EXPORT lsm_pool_unsupported_actions_get |
( |
lsm_pool * |
p |
) |
|
Retrieve what the pool cannot be used for.
- Parameters:
-
- Returns:
- bitmap of actions not supported.