1MPATH_PERSISTENT_RESERVE_IN(L3i)brary Functions ManuMaPlATH_PERSISTENT_RESERVE_IN(3)
2
3
4
6 mpath_persistent_reserve_in - send PRIN command to DM device
7
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
15 The function in the mpath_persistent_reserve_in () sends PRIN command
16 to the DM device and gets the response.
17
18 Parameters:
19
20 fd The file descriptor of a multipath device. Input
21 argument.
22
23 rq_servact PRIN command service action. Input argument.
24
25 resp The response from PRIN service action. The caller
26 should manage the memory allocation of this struc‐
27 ture.
28
29 noisy Turn on debugging trace: Input argument. 0->Disable,
30 1->Enable.
31
32 verbose Set verbosity level. Input argument. value:[0-3].
33 0->Crits and Errors, 1->Warnings, 2->Info, 3->Debug.
34
36 MPATH_PR_SUCCESS
37 If PR command successful.
38
39 MPATH_PR_SYNTAX_ERROR
40 If syntax error or invalid parameter.
41
42 MPATH_PR_SENSE_NOT_READY
43 If command fails with [sk,asc,ascq: 0x2,*,*].
44
45 MPATH_PR_SENSE_MEDIUM_ERROR
46 If command fails with [sk,asc,ascq: 0x3,*,*].
47
48 MPATH_PR_SENSE_HARDWARE_ERROR
49 If command fails with [sk,asc,ascq: 0x4,*,*].
50
51 MPATH_PR_SENSE_INVALID_OP
52 If command fails with [sk,asc,ascq: 0x5,0x20,0x0].
53
54 MPATH_PR_ILLEGAL_REQ
55 If command fails with [sk,asc,ascq: 0x5,*,*].
56
57 MPATH_PR_SENSE_UNIT_ATTENTION
58 If command fails with [sk,asc,ascq: 0x6,*,*].
59
60 MPATH_PR_SENSE_ABORTED_COMMAND
61 If command fails with [sk,asc,ascq: 0xb,*,*].
62
63 MPATH_PR_NO_SENSE
64 If command fails with [sk,asc,ascq: 0x0,*,*].
65
66 MPATH_PR_SENSE_MALFORMED
67 If command fails with SCSI command malformed.
68
69 MPATH_PR_FILE_ERROR
70 If command fails while accessing file (device node) prob‐
71 lems(e.g. not found).
72
73 MPATH_PR_DMMP_ERROR
74 If Device Mapper related error.(e.g Error in getting dm
75 info).
76
77 MPATH_PR_OTHER
78 If other error/warning has occurred(e.g transport or driver
79 error).
80
82 mpathpersist(8).
83
85 multipath-tools was developed by Christophe Varoqui <christophe.varo‐
86 qui@opensvc.com> and others.
87
88
89
90Linux 2016-11-01 MPATH_PERSISTENT_RESERVE_IN(3)