lsm_volume_create man page
lsm_volume_create — Creates a new volume
int lsm_volume_create (lsm_connect *conn, lsm_pool *pool, const char *volume_name, uint64_t size, lsm_volume_provision_type provisioning, lsm_volume **new_volume, char **job, lsm_flag flags);
Valid lsm_connect pointer.
Pointer of lsm_pool.
String. Human recognizable name, might be altered or ignored by certain storage systems.
uint64_t. Size of new volume in bytes, actual size might be bigger than requested and will be based on array rounding to block size,
lsm_volume_provision_type. Type of volume provisioning to use. Valid values are: * LSM_VOLUME_PROVISION_DEFAULT
Let storage system to decided. * LSM_VOLUME_PROVISION_FULL
Create new fully allocated volume. * LSM_VOLUME_PROVISION_THIN
Create new thin provisioning volume.
Output pointer of lsm_volume. Will be NULL if storage system support asynchronous action on this. Memory must be freed with a call to lsm_volume_record_free.
Output pointer of string. If storage system support asynchronous action on this, a job will be created and could be tracked via lsm_job_status_volume_get. NULL if storage system does not support asynchronous action on this.
Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
Creates a new volume(also known as LUN).
Error code as enumerated by 'lsm_error_number'.
A job is started. Please check the 'job' output pointer.
When any argument is NULL or not a valid lsm_connect pointer
or invalid flags or invalid provisioning type.
When pool not found.
Pool does not have enough space.
Pool is not ready for volume creation.