1MPATH_PERSISTENT_RESERVE_OUTL(i3b)rary Functions ManMuPaAlTH_PERSISTENT_RESERVE_OUT(3)
2
3
4

NAME

6       mpath_persistent_reserve_out
7

SYNOPSIS

9       #include <mpath_persist.h>
10
11       int   mpath_persistent_reserve_out  (int  fd,  int  rq_servact,  struct
12       prin_resp *resp, int noisy, int verbose)
13
14

DESCRIPTION

16       The function in the mpath_persistent_reserve_out() sends PR OUT command
17       to the DM device and gets the response.
18       Parameters:
19       fd The file descriptor of a multipath device. Input argument.
20       rq_servact PROUT command service action. Input argument
21       rq_scope  Persistent  reservation  scope.  The  value  should be always
22       LU_SCOPE (0h).
23       rq_type Persistent reservation type. The  valid  values  of  persistent
24       reservation types are
25             5h (Write exclusive - registrants only)
26             6h (Exclusive access - registrants only)
27             7h (Write exclusive - All registrants)
28             8h (Exclusive access - All registrants).
29       paramp  PROUT  command  parameter  data.  The  paramp is a struct which
30       describes PROUT parameter list. Caller should manage the memory alloca‐
31       tion of this structure.
32       noisy Turn on debugging trace: Input argument. 0->Disable, 1->Enable.
33       verbose  Set  verbosity  level. Input argument. value: 0 to 3. 0->Crits
34       and Errors, 1->Warnings, 2->Info, 3->Debug
35
36

RETURNS

38       MPATH_PR_SUCCESS if PR command successful else returns any one  of  the
39       status mentioned below
40       MPATH_PR_SYNTAX_ERROR if syntax error or invalid parameter
41       MPATH_PR_SENSE_NOT_READY if command fails with [sk,asc,ascq: 0x2,*,*]
42       MPATH_PR_SENSE_MEDIUM_ERROR   if   command   fails  with  [sk,asc,ascq:
43       0x3,*,*]
44       MPATH_PR_SENSE_HARDWARE_ERROR  if  command  fails  with   [sk,asc,ascq:
45       0x4,*,*]
46       MPATH_PR_SENSE_INVALID_OP   if   command   fails   with   [sk,asc,ascq:
47       0x5,0x20,0x0]
48       MPATH_PR_ILLEGAL_REQ if command fails with [sk,asc,ascq: 0x5,*,*]
49       MPATH_PR_SENSE_UNIT_ATTENTION  if  command  fails  with   [sk,asc,ascq:
50       0x6,*,*]
51       MPATH_PR_SENSE_ABORTED_COMMAND  if  command  fails  with  [sk,asc,ascq:
52       0xb,*,*]
53       MPATH_PR_NO_SENSE if command fails with [sk,asc,ascq: 0x0,*,*]
54       MPATH_PR_SENSE_MALFORMED if command fails with SCSI command malformed
55       MPATH_PR_RESERV_CONFLICT if command fails with reservation conflict
56       MPATH_PR_FILE_ERROR if command fails while accessing file (device node)
57       problems(e.g. not found)
58       MPATH_PR_DMMP_ERROR  if  Device Mapper related error.(e.g Error in get‐
59       ting dm info)
60       MPATH_PR_OTHER if other error/warning  has  occurred(e.g  transport  or
61       driver error)
62
63
64

SEE ALSO

66       mpath_persistent_reserve_in        mpathpersist   /usr/share/doc/mpath‐
67       persist/README
68
69
70
71Linux Manpage                     2011-04-08   MPATH_PERSISTENT_RESERVE_OUT(3)
Impressum