SCSI Target Mode Framework Library Functions
stmfSetStmfProp(3STMF)
NAME
stmfSetStmfProp - set default stmf properties for luns and
targetsSYNOPSIS
cc [ flag... ] file... -lstmf [ library... ]
#include
int stmfSetStmfProp(uint8_t propType, char *propVal);
PARAMETERS
propType a property type value. See DESCRIPTION for valid
values. propVal a property valueDESCRIPTION
This function sets the default properties for the specifiedproperty type. All property values are expressed in human-
readable form. The propType argument can be one of the fol-
lowing values:STMF_DEFAULT_LU_STATE
Set the default state for luns. The new setting will only take effect after a service enable/restart on thestmf service. Valid propVal values are "online" or "off-
line".STMF_DEFAULT_TARGET_PORT_STATE
Sets the default state for target ports The new setting will only take effect after a service enable/restart on the stmf service. Valid propVal values are "online" or "offline".RETURN VALUES
The following values are returned:STMF_STATUS_SUCCESS The API call was successful.
STMF_ERROR_INVALID_ARG The propType argument is invalid.
SunOS 5.11 Last change: 7 Jul 2010 1
SCSI Target Mode Framework Library FunctionsstmfSetStmfProp(3STMF)
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
SEE ALSO
libstmf(3LIB), stmfGetStmfProp(3STMF), attributes(5)SunOS 5.11 Last change: 7 Jul 2010 2
SCSI Target Mode Framework Library FunctionsstmfSetStmfProp(3STMF)
SunOS 5.11 Last change: 7 Jul 2010 3