Package lockdev

A library for locking devices

https://alioth.debian.org/projects/lockdev/

Lockdev provides a reliable way to put an exclusive lock to devices
using both FSSTND and SVr4 methods.

System Administration (Section 8)
lockdev
The lockdev command can perform one of the following operations (calls to liblockdev(3) API): -l - lock device with dev_lock() function -u - unlock device with...