stmfImportLu man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

stmfImportLu(3STMSCSI Target Mode Framework Library FunctiostmfImportLu(3STMF)

NAME
       stmfImportLu - import a logical unit

SYNOPSIS
       cc [ flag... ] file... -lstmf [ library... ]
       #include <libstmf.h>

       int stmfImportLu(uint16_t dType, char *fname, stmfGuid *luGuid);

PARAMETERS
       dtype	 the  device  type  of	the  logical unit being imported. 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 attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Interface Stability	     │Committed			   │
       ├─────────────────────────────┼─────────────────────────────┤
       │MT-Level		     │Safe			   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       stmfCreateLu(3STMF), attributes(5)

SunOS 5.11			  29 Sep 2009		   stmfImportLu(3STMF)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net