sg_persist --version (return code: 0)
version: 0.52 20160201
sg_persist --help (return code: 0)
Usage: sg_persist [OPTIONS] [DEVICE]
where the main OPTIONS are:
--clear|-C PR Out: Clear
--help|-h print usage message, twice for more
--in|-i request PR In command (default)
--out|-o request PR Out command
--param-rk=RK|-K RK PR Out parameter reservation key
(RK is in hex)
--param-sark=SARK|-S SARK PR Out parameter service action
reservation key (SARK is in hex)
--preempt|-P PR Out: Preempt
--preempt-abort|-A PR Out: Preempt and Abort
--prout-type=TYPE|-T TYPE PR Out type field (see '-hh')
--read-full-status|-s PR In: Read Full Status
--read-keys|-k PR In: Read Keys (default)
--read-reservation|-r PR In: Read Reservation
--read-status|-s PR In: Read Full Status
--register|-G PR Out: Register
--register-ignore|-I PR Out: Register and Ignore
--register-move|-M PR Out: Register and Move
for '--register-move'
--release|-L PR Out: Release
--replace-lost|-x PR Out: Replace Lost Reservation
--report-capabilities|-c PR In: Report Capabilities
--reserve|-R PR Out: Reserve
--unreg|-U optional with PR Out Register and Move
Performs a SCSI PERSISTENT RESERVE (IN or OUT) command. Invoking
'sg_persist DEVICE' will do a PR In Read Keys command. Use '-hh'
for more options and TYPE meanings.