# mpath_persistent_reserve_out(3) - man - phpMan

[MPATH_PERSISTENT_RESERVE_OUT(3)](https://www.chedong.com/phpMan.php/man/MPATHPERSISTENTRESERVEOUT/3/markdown)       Library Functions Manual       [MPATH_PERSISTENT_RESERVE_OUT(3)](https://www.chedong.com/phpMan.php/man/MPATHPERSISTENTRESERVEOUT/3/markdown)



## NAME
       mpath_persistent_reserve_out - send PROUT command to DM device

## SYNOPSIS
       **#include** **<mpath**___**persist.h>**

       **int**  **mpath**___**persistent**___**reserve**___**out**_(int_  _fd,_ _int_ _rq_servact,_ _struct_ _prin_resp_ _*resp,_ _int_ _noisy,_
       _int_ _verbose)_

## DESCRIPTION
       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 struc‐
                          ture.

              _noisy_       Turn on debugging trace: Input argument. 0->Disable, 1->Enable.

              _verbose_     Set verbosity level. Input argument. value: 0 to 3. 0->Crits  and  Errors,
                          1->Warnings, 2->Info, 3->Debug.

## RETURNS
       **MPATH**___**PR**___**SUCCESS**
                   If PR command successful else returns any one of the status mentioned below.

       **MPATH**___**PR**___**SYNTAX**___**ERROR**
                   If syntax error or invalid parameter.

       **MPATH**___**PR**___**SENSE**___**NOT**___**READY**
                   If command fails with [sk,asc,ascq: 0x2,*,*].

       **MPATH**___**PR**___**SENSE**___**MEDIUM**___**ERROR**
                   If command fails with [sk,asc,ascq: 0x3,*,*].

       **MPATH**___**PR**___**SENSE**___**HARDWARE**___**ERROR**
                   If command fails with [sk,asc,ascq: 0x4,*,*].

       **MPATH**___**PR**___**SENSE**___**INVALID**___**OP**
                   If command fails with [sk,asc,ascq: 0x5,0x20,0x0].

       **MPATH**___**PR**___**ILLEGAL**___**REQ**
                   If command fails with [sk,asc,ascq: 0x5,*,*].

       **MPATH**___**PR**___**SENSE**___**UNIT**___**ATTENTION**
                   If command fails with [sk,asc,ascq: 0x6,*,*].

       **MPATH**___**PR**___**SENSE**___**ABORTED**___**COMMAND**
                   If command fails with [sk,asc,ascq: 0xb,*,*].

       **MPATH**___**PR**___**NO**___**SENSE**
                   If command fails with [sk,asc,ascq: 0x0,*,*].

       **MPATH**___**PR**___**SENSE**___**MALFORMED**
                   If command fails with SCSI command malformed.

       **MPATH**___**PR**___**FILE**___**ERROR**
                   If command fails while accessing file (device node) problems(e.g. not found).

       **MPATH**___**PR**___**DMMP**___**ERROR**
                   If Device Mapper related error.(e.g Error in getting dm info).

       **MPATH**___**PR**___**OTHER**
                   If other error/warning has occurred(e.g transport or driver error).

       **MPATH**___**PR**___**RESERV**___**CONFLICT**
                   If command fails with reservation conflict.

## SEE ALSO
       [**mpathpersist**(8)](https://www.chedong.com/phpMan.php/man/mpathpersist/8/markdown).

## AUTHORS
       _multipath-tools_ was developed by Christophe Varoqui <<christophe.varoqui@opensvc.com>> and oth‐
       ers.



Linux                                        2016-11-01              [MPATH_PERSISTENT_RESERVE_OUT(3)](https://www.chedong.com/phpMan.php/man/MPATHPERSISTENTRESERVEOUT/3/markdown)
