cc [ flag... ] file... -lstmf [ library... ] #include <libstmf.h> int stmfImportLu(uint16_t dType, char *fname, stmfGuid *luGuid);
the device type of the logical unit being imported. Only STMF_DISK is currently supported.
the filename of the logical unit being imported
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.
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).
The following values are returned:
The API call was successful.
The dType or fname argument was invalid.
The specified meta file could not be accessed.
The data file could not be accessed.
See attributes(5) for descriptions of the following attributes: