[PATCH 0/3] blkpr: add read-keys and read-reservations commands
Stefan Hajnoczi <[email protected]> Thu, 11 Dec 2025 11:09:53 -0500
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <[email protected]> |
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 meson.build | 6 +++ sys-utils/blkpr.c | 106 ++++++++++++++++++++++++++++++++++++++--- configure.ac | 8 ++++ sys-utils/blkpr.8.adoc | 3 +- 4 files changed, 115 insertions(+), 8 deletions(-) -- 2.52.0