lsm_fs_create man page
lsm_fs_create — Creates a new file system
int lsm_fs_create (lsm_connect *conn, lsm_pool *pool, const char *name, uint64_t size_bytes, lsm_fs **fs, char **job, lsm_flag flags);
Pointer of lsm_pool.
String. Human recognizable name, might be altered or ignored by certain storage system.
uint64_t. Size of new file system in bytes, actual size might be bigger than requested and will be based on array rounding to block size,
Output pointer of lsm_fs. Will be NULL if storage system support asynchronous action on this. Returned value must be freed with lsm_fs_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_fs_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 file system for NFS or CIFS share.
LSM_ERR_OK on success, LSM_ERR_JOB_STARTED if async. ,
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.
When pool not found.
Pool does not have enough space.
Pool is not ready for file system creation.