STMFCREATELU(3STMF) | SCSI Target Mode Framework Library Functions | STMFCREATELU(3STMF) |
stmfCreateLu - create a logical unit
cc [ flag... ] file... -lstmf [ library... ] #include <libstmf.h> int stmfCreateLu(luResource hdl, stmfGuid *luGuid);
hdl
luGuid
The stmfCreateLu function creates a logical unit in stmf using the properties of hdl. See stmfSetLuProp(3STMF) for a complete description of properties and their possible values.
The following values are returned:
STMF_STATUS_SUCCESS
STMF_ERROR_FILE_IN_USE
STMF_ERROR_GUID_IN_USE
STMF_ERROR_INVALID_BLKSIZE
STMF_ERROR_WRITE_CACHE_SET
STMF_ERROR_SIZE_OUT_OF_RANGE
STMF_ERROR_META_FILE_NAME
STMF_ERROR_DATA_FILE_NAME
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Committed |
MT-Level | Safe |
libstmf(3LIB), stmfCreateLuResource(3STMF), stmfSetLuProp(3STMF), attributes(7)
May 8, 2009 | OmniOS |