sg_prevent --version (return code: 0)
sg_prevent: version: 1.08 20151219
sg_prevent --help (return code: 0)
Usage: sg_prevent [--allow] [--help] [--prevent=PC] [--verbose] [--version]
DEVICE
where:
--allow|-a allow media removal
--help|-h print usage message then exit
--prevent=PC|-p PC prevent code value (def: 1 -> prevent)
0 -> allow, 1 -> prevent
2 -> persistent allow, 3 -> persistent prevent
--verbose|-v increase verbosity
--version|-V print version string and exit
Performs a SCSI PREVENT ALLOW MEDIUM REMOVAL command