Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

IMA_ExposeLu (3IMA)

Name

IMA_ExposeLu - Exposes the specified logical unit to the operating system

Synopsis

cc [ flag... ] file... -lima [ library... ]
#include <ima.h>

IMA_STATUS IMA_ExposeLu(
 /* in */     IMA_OID luOid
);

Parameters

luOid

The object ID of the logical unit (LU) to expose to the operating system.

Description

The IMA_ExposeLu() API exposes the specified LU to the operating system.

Return Values

IMA_STATUS_REBOOT_NECESSARY

Returned if a reboot is necessary before the LU is exposed to the operating system

IMA_ERROR_NOT_SUPPORTED

Returned if the logical host bus adapter (LHBA) object associated with the LU does not support selective exposing or the exposing of LUs

IMA_ERROR_INVALID_OBJECT_TYPE

Returned if the luOid argument does not specify a valid object type

IMA_ERROR_INCORRECT_OBJECT_TYPE

Returned if the luOid argument does not specify an LU object

IMA_ERROR_OBJECT_NOT_FOUND

Returned if the luOid argument does not specify an LU known to the system

IMA_ERROR_LU_EXPOSED

Returned if the luOid argument specifies an LU exposed to the operating system

IMA_ERROR_TARGET_TIMEOUT

Returned if the target associated with the specified LU fails to respond to an iSCSI login request from an initiator

IMA_ERROR_LOGIN_REJECTED

Returned if the target associated with the specified LU rejects an iSCSI login request from an initiator

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library/storage/snia-ima
Interface Stability
Volatile
MT-Level
Safe

See Also

libima(3LIB), attributes(7), IMA_UnexposeLu(3IMA), IMA_GetLuOid(3IMA)