Update cheatsheets

This commit is contained in:
ivuorinen
2024-06-13 00:14:42 +00:00
parent 5cc33140be
commit 038e245f61
12 changed files with 42 additions and 34 deletions

View File

@@ -8,22 +8,22 @@ source: https://github.com/tldr-pages/tldr.git
> Register, reserve, release, preempt, and clear persistent reservations on a block device that supports Persistent Reservations.
> More information: <https://manned.org/blkpr>.
- Register ([c]ommand) a new reservation with a given [k]ey on a given device:
- Register (command) a new reservation with a given key on a given device:
`blkpr {{-c|--command}} register --key {{reservation_key}} {{path/to/device}}`
`blkpr {{-c|--command}} register {{-k|--key}} {{reservation_key}} {{path/to/device}}`
- Set the [t]ype of an existing reservation to exclusive access:
- Set the type of an existing reservation to exclusive access:
`blkpr -c reserve -k {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}`
`blkpr -c reserve {{-k|--key}} {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}`
- Preempt the existing reservation with a given [K]ey and replace it with a new reservation:
- Preempt the existing reservation with a given key and replace it with a new reservation:
`blkpr -c preempt {{-K|--oldkey}} {{old_key}} --key {{new_key}} -t write-exclusive {{path/to/device}}`
`blkpr -c preempt {{-K|--oldkey}} {{old_key}} {{-k|--key}} {{new_key}} {{-t|--type}} write-exclusive {{path/to/device}}`
- Release a reservation with a given [k]ey and [t]ype on a given device:
- Release a reservation with a given key and type on a given device:
`blkpr -c release --key {{reservation_key}} -t {{reservation_type}} {{path/to/device}}`
`blkpr -c release {{-k|--key}} {{reservation_key}} {{-t|--type}} {{reservation_type}} {{path/to/device}}`
- Clear all reservations from a given device:
`blkpr -c clear -k {{key}} {{path/to/device}}`
`blkpr -c clear {{-k|--key}} {{key}} {{path/to/device}}`