|Skip Navigation Links|
|Exit Print View|
|man pages section 3: Extended Library Functions, Volume 4 Oracle Solaris 11 Express 11/10|
- create a logical unit
cc [ flag... ] file... -lstmf [ library... ] #include <libstmf.h> int stmfCreateLu(luResource hdl, stmfGuid *luGuid);
The logical unit resource returned from a previous call to stmfCreateLuResource(3STMF).
If non-null, it must contain a pointer to an stmfGuid structure allocated by the caller. On successful return from this API, it will contain the guid of the newly created logical unit. If luGuid is NULL, this argument is ignored.
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:
The API call was successful.
The filename specified by the STMF_LU_PROP_DATA_FILENAME or STMF_LU_PROP_META_FILENAME was in use.
The guid specified by the STMF_LU_PROP_GUID property is already being used.
The blocksize specified by STMF_LU_PROP_BLOCK_SIZE is invalid.
The requested write cache setting could not be provided.
The specified logical unit size is not supported.
The specified meta file could not be accessed.
The specified data file could not be accessed.
See attributes(5) for descriptions of the following attributes: