SCSI Target Mode Framework Library Functions stmfImportLu(3STMF)
NAME
stmfImportLu - import a logical unit
SYNOPSIS
cc [ flag... ] file... -lstmf [ library... ]
#include
int stmfImportLu(uint16_t dType, char *fname, stmfGuid *luGuid);
PARAMETERS
dtype the device type of the logical unit beingimported. Only STMF_DISK is currently supported.
fname the filename of the logical unit being imported luGuid pointer to a stmfGuid allocated by the caller. On success, this contains the guid of the imported logical unit. If luGuid is NULL, this parameter is ignored.DESCRIPTION
The stmfImportLu() function imports a previously created
logical unit. The fname argument must be set to the filename where the metadata for the logical unit is stored. See stmfCreateLu(3STMF).RETURN VALUES
The following values are returned:STMF_STATUS_SUCCESS The API call was successful.
STMF_ERROR_INVALID_ARG The dType or fname argument was
invalid.STMF_ERROR_META_FILE_NAME The specified meta file could
not be accessed.STMF_ERROR_DATA_FILE_NAME The data file could not be
accessed.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:SunOS 5.11 Last change: 29 Sep 2009 1
SCSI Target Mode Framework Library Functions stmfImportLu(3STMF)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
SEE ALSO
stmfCreateLu(3STMF), attributes(5)SunOS 5.11 Last change: 29 Sep 2009 2