1MPATH_PERSISTENT_RESERVE_IN(L3i)brary Functions ManuMaPlATH_PERSISTENT_RESERVE_IN(3)
2
3
4

NAME

6       mpath_persistent_reserve_in
7

SYNOPSIS

9       #include <mpath_persist.h>
10
11       int   mpath_persistent_reserve_in   (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_in() sends PRIN command to
17       the DM device and gets the response.
18       Parameters:
19       fd The file descriptor of a multipath device. Input argument.
20       rq_servact PRIN command service action. Input argument
21       resp  The  response  from PRIN service action. The caller should manage
22       the memory allocation of this structure
23       noisy Turn on debugging trace: Input argument. 0->Disable, 1->Enable
24       verbose Set verbosity level. Input argument. value:[0-3]. 0->Crits  and
25       Errors, 1->Warnings, 2->Info, 3->Debug
26
27

RETURNS

29       MPATH_PR_SUCCESS if PR command successful
30       MPATH_PR_SYNTAX_ERROR if syntax error or invalid parameter
31       MPATH_PR_SENSE_NOT_READY if command fails with [sk,asc,ascq: 0x2,*,*]
32       MPATH_PR_SENSE_MEDIUM_ERROR   if   command   fails  with  [sk,asc,ascq:
33       0x3,*,*]
34       MPATH_PR_SENSE_HARDWARE_ERROR  if  command  fails  with   [sk,asc,ascq:
35       0x4,*,*]
36       MPATH_PR_SENSE_INVALID_OP   if   command   fails   with   [sk,asc,ascq:
37       0x5,0x20,0x0]
38       MPATH_PR_ILLEGAL_REQ if command fails with [sk,asc,ascq: 0x5,*,*]
39       MPATH_PR_SENSE_UNIT_ATTENTION  if  command  fails  with   [sk,asc,ascq:
40       0x6,*,*]
41       MPATH_PR_SENSE_ABORTED_COMMAND  if  command  fails  with  [sk,asc,ascq:
42       0xb,*,*]
43       MPATH_PR_NO_SENSE if command fails with [sk,asc,ascq: 0x0,*,*]
44       MPATH_PR_SENSE_MALFORMED if command fails with SCSI command malformed
45       MPATH_PR_FILE_ERROR if command fails while accessing file (device node)
46       problems(e.g. not found)
47       MPATH_PR_DMMP_ERROR  if  Device Mapper related error.(e.g Error in get‐
48       ting dm info)
49       MPATH_PR_OTHER if other error/warning  has  occurred(e.g  transport  or
50       driver error)
51
52
53

SEE ALSO

55       mpath_persistent_reserve_out    mpathpersist   /usr/share/doc/mpathper‐
56       sist/README
57
58
59
60Linux Manpage                     2011-04-08    MPATH_PERSISTENT_RESERVE_IN(3)
Impressum