Skip to content

blkpr: add read-keys and read-reservations commands

Stefan Hajnoczi util-linux 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyApplied
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Use #ifdef IOC_PR_... instead of autoconf/meson because it's simpler [Karel]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3blkpr: prepare for _IOR() ioctlssys-utils/blkpr.c+1 -10 replies
2/3blkpr: add read-keys commandsys-utils/blkpr.8.adoc sys-utils/blkpr.c+48 -10 replies
3/3blkpr: add read-reservation commandsys-utils/blkpr.8.adoc sys-utils/blkpr.c+55 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] blkpr: add read-keys and read-reservations commands

v2:
- Use #ifdef IOC_PR_... instead of autoconf/meson because it's simpler [Karel]

New <linux/pr.h> ioctls make it possible to fetch the list of registered keys and the details of the current reservation from a block device. The relevant Linux commits are:

3e2cb9ee76c27 block: add IOC_PR_READ_RESERVATION ioctl 22a1ffea5f805 block: add IOC_PR_READ_KEYS ioctl

Add the appropriate commands to blkpr. Users can use these for troubleshooting and cluster management tools may use them to query the state of persistent reservations during recovery.

Stefan Hajnoczi (3):
blkpr: prepare for _IOR() ioctls
blkpr: add read-keys command
blkpr: add read-reservation command

 sys-utils/blkpr.c      | 106 ++++++++++++++++++++++++++++++++++++++---
 sys-utils/blkpr.8.adoc |   3 +-
 2 files changed, 101 insertions(+), 8 deletions(-)
Signature · 1 line
2.52.0