mpath_persistent_reserve_out3
Send prout command to dm device
Usage
#include <mpath_persist.h>
int mpath_persistent_reserve_out(int fd, int rq_servact, int rq_scope, unsigned int rq_type, struct prout_param_descriptor *paramp, int noisy, int verbose)
Overview
The function in the mpath_persistent_reserve_out () sends PROUT command to the DM device and gets the response.
Parameters:-
- fd
-
The file descriptor of a multipath device. Input argument.
- rq_servact
-
PROUT command service action. Input argument.
- rq_scope
-
Persistent reservation scope. The value should be always LU_SCOPE (0h).
- rq_type
-
Persistent reservation type. The valid values of persistent reservation types are:
-
5h (Write exclusive - registrants only).
-
6h (Exclusive access - registrants only).
-
7h (Write exclusive - All registrants).
-
8h (Exclusive access - All registrants).
-
- paramp
-
PROUT command parameter data. The paramp is a struct which describes PROUT parameter list. Caller should manage the memory allocation of this structure.
- noisy
-
Turn on debugging trace: Input argument. 0->Disable, 1->Enable.
- verbose
-
Set verbosity level. Input argument. value: 0 to 3. 0->Errors, 1->Warnings, 2->Info, 3->Debug.
Returns
|
If PR command successful else returns any one of the status mentioned below. |
|---|---|
|
If syntax error or invalid parameter. |
|
If command fails with [sk,asc,ascq: 0x2,*,*]. |
|
If command fails with [sk,asc,ascq: 0x3,*,*]. |
|
If command fails with [sk,asc,ascq: 0x4,*,*]. |
|
If command fails with [sk,asc,ascq: 0x5,0x20,0x0]. |
|
If command fails with [sk,asc,ascq: 0x5,*,*]. |
|
If command fails with [sk,asc,ascq: 0x6,*,*]. |
|
If command fails with [sk,asc,ascq: 0xb,*,*]. |
|
If command fails with [sk,asc,ascq: 0x0,*,*]. |
|
If command fails with SCSI command malformed. |
|
If command fails while accessing file (device node) problems(e.g. not found). |
|
If Device Mapper related error.(e.g Error in getting dm info). |
|
If other error/warning has occurred(e.g transport or driver error). |
|
If command fails with reservation conflict. |
Releases
6 releases since Debian 8 (Jessie); the text changed 4 times.