STMFMODIFYLU(3STMF) | SCSI Target Mode Framework Library Functions | STMFMODIFYLU(3STMF) |
stmfModifyLu, stmfModifyLuByFname - modify a logical uni
cc [ flag... ] file... -lstmf [ library... ] #include <libstmf.h> int stmfModifyLu(stmfGuid *luGuid, uint32_t prop, const char *propVal)
int stmfModifyLu(uint16_t dType, const char *fname, uint32_t prop,
const char *propVal)
luGuid
fname
dType
prop
propVal
The stmfModifyLu() and stmfModifyLuByFname() functions modify the properties of a logical unit device.
Valid properties for modify STMF_DISK:
STMF_LU_PROP_ALIAS
Default: Set to file name of backing store.
STMF_LU_PROP_SIZE
Default: Size of device specified in the STMF_LU_PROP_DATA_FILENAME property value.
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 |
May 8, 2009 | OmniOS |