public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: util-linux@vger.kernel.org
Cc: pizhenwei@bytedance.com, hare@suse.de, kwolf@redhat.com,
	Stefan Hajnoczi <stefanha@redhat.com>
Subject: [PATCH 0/3] blkpr: add read-keys and read-reservations commands
Date: Thu, 11 Dec 2025 11:09:53 -0500	[thread overview]
Message-ID: <20251211160956.1540114-1-stefanha@redhat.com> (raw)

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


             reply	other threads:[~2025-12-11 16:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-11 16:09 Stefan Hajnoczi [this message]
2025-12-11 16:09 ` [PATCH 1/3] blkpr: prepare for _IOR() ioctls Stefan Hajnoczi
2025-12-11 16:09 ` [PATCH 2/3] blkpr: add read-keys command Stefan Hajnoczi
2025-12-11 16:09 ` [PATCH 3/3] blkpr: add read-reservation command Stefan Hajnoczi
2025-12-17 10:53   ` Karel Zak
2025-12-17 18:26     ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251211160956.1540114-1-stefanha@redhat.com \
    --to=stefanha@redhat.com \
    --cc=hare@suse.de \
    --cc=kwolf@redhat.com \
    --cc=pizhenwei@bytedance.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox