MPATH_PERSISTENT_RESERVE_IN(3) Library Functions Manual MPATH_PERSISTENT_RESERVE_IN(3)

mpath_persistent_reserve_in - send PRIN command to DM device

#include <mpath_persist.h>

int mpath_persistent_reserve_in(int fd, int rq_servact, struct prin_resp *resp, int noisy, int verbose)

The function in the mpath_persistent_reserve_in () sends PRIN command to the DM device and gets the response.

The file descriptor of a multipath device. Input argument.
PRIN command service action. Input argument.
The response from PRIN service action. The caller should manage the memory allocation of this structure.
Turn on debugging trace: Input argument. 0->Disable, 1->Enable.
Set verbosity level. Input argument. value:[0-3]. 0->Crits and Errors, 1->Warnings, 2->Info, 3->Debug.

If PR command successful.
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).

mpathpersist(8).

multipath-tools was developed by Christophe Varoqui <christophe.varoqui@opensvc.com> and others.

2018-06-15 Linux