MPATH_PERS...ESERVE_OUT(3)
π« NAME π«
okay so bestie, this is the mpath_persistent_reserve_out(3) page from the Library Functions Manual, and it is literally here to send a PROUT command to a DM device. Main character energy fr fr.
β¨ SYNOPSIS β¨
#include <mpath_persist.h>
int mpath_persistent_reserve_out(int fd, int rq_servact, int rq_scope,
unsigned int rq_type, struct prout_param_descriptor *paramp, int noisy,
int verbose)
π DESCRIPTION π
mpath_persistent_reserve_out() sends a PROUT command to the DM device and gets the response back. slay.
Parameters, bestie:
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 alwaysLU_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.parampis a struct which describes the PROUT parameter list. Caller should manage the memory allocation of this structure, no cap.noisyβ turn on debugging trace: input argument.0->Disable,1->Enable.verboseβ set verbosity level. Input argument. value:0to3.0->Errors,1->Warnings,2->Info,3->Debug.
π RETURNS π
MPATH_PR_SUCCESSβ if PR command successful; otherwise it 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 π
π«Ά AUTHORS π«Ά
multipath-tools was developed by Christophe Varoqui <christophe.varoqui@opensvc.com> and others.
okay that's literally the whole page β signing off from the Linux source, date 2026-02-02, manual MPATH_PERS...ESERVE_OUT(3). bye bestie, go slay those reservations π
β¨
π¦ where this page comes from
- arch rolling: multipath-tools 0.15.1-1 Β· GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms