STMFSETLUPROP(3STMF) | SCSI Target Mode Framework Library Functions | STMFSETLUPROP(3STMF) |
stmfSetLuProp, stmfGetLuProp - set or get a logical unit property
cc [ flag... ] file... -lstmf [ library... ] #include <libstmf.h> int stmfSetLuProp(luResource hdl, uint32_t prop, const char *propVal);
int stmfGetLuProp(luResource hdl, uint32_t prop, char *propVal,
size_t *propLen);
hdl
prop
propVal
propLen
These functions set or get property values. All property values are expressed in human-readable form. Boolean properties are expressed in case insensitive form of "true" or "false". Properties that are represented by ASCII hexadecimal contain no leading characters to indicate a base hexadecimal representation (that is, no leading "0x"). The prop argument can be one of the following values:
STMF_LU_PROP_ALIAS
Default: Set to file name of backing store.
STMF_LU_PROP_BLOCK_SIZE
Default: 512
STMF_LU_PROP_COMPANY_ID
Default: 00144F
STMF_LU_PROP_DATA_FILENAME
Default: None
STMF_LU_PROP_GUID
Default: Set by framework to a generated value.
STMF_LU_PROP_META_FILENAME
Default: None. If this value is not specified, the value specified in STMF_LU_PROP_DATA_FILENAME will be used.
STMF_LU_PROP_MGMT_URL
STMF_LU_PROP_PID
Default: sSet to COMSTAR.
STMF_LU_PROP_PRODUCT_REV
Default: Set to 1.0.
STMF_LU_PROP_SERIAL_NUM
Default: None
STMF_LU_PROP_SIZE
Default: Size of the device specified in the STMF_LU_PROP_DATA_FILENAME property value.
STMF_LU_PROP_VID
Default: Set to SUN.
STMF_LU_PROP_WRITE_CACHE_DISABLE
Default: Writeback cache setting of the backing store device specified by STMF_LU_PROP_DATA_FILENAME.
STMF_LU_PROP_WRITE_PROTECT
Default: "false"
The following values are returned:
STMF_STATUS_SUCCESS
STMF_ERROR_INVALID_ARG
STMF_ERROR_INVALID_PROPSIZE
STMF_ERROR_NO_PROP
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Committed |
MT-Level | Safe |
libstmf(3LIB), stmfCreateLuResource(3STMF), stmfGetLuResource(3STMF), attributes(7)
July 17, 2009 | OmniOS |