1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
Stefan Hajnoczi 3e2cb9ee76 block: add IOC_PR_READ_RESERVATION ioctl
Add a Persistent Reservations ioctl to read the current reservation.
This calls the pr_ops->read_reservation() function that was previously
added in commit c787f1baa503 ("block: Add PR callouts for read keys and
reservation") but was only used by the in-kernel SCSI target so far.

The IOC_PR_READ_RESERVATION ioctl is necessary so that userspace
applications that rely on Persistent Reservations ioctls have a way of
inspecting the current state. Cluster managers and validation tests need
this functionality.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-12-04 07:19:26 -07:00
..
2025-12-03 17:24:33 -08:00
2025-11-24 21:56:17 +01:00
2025-10-28 22:59:19 +01:00
2025-11-25 19:20:42 -08:00
2025-11-05 08:07:21 -07:00
2025-09-05 09:11:28 +02:00
2025-07-14 09:15:58 +02:00
2025-09-15 14:32:54 +02:00
2025-07-08 12:39:24 +02:00
2025-11-03 17:41:18 +01:00
2025-12-02 17:03:55 -08:00
2025-10-30 14:25:14 +01:00
2025-12-04 07:19:26 -07:00
2025-11-25 19:20:42 -08:00
2025-11-04 08:30:09 +01:00
2025-07-14 18:41:42 -07:00
2025-06-19 14:28:22 +02:00
2025-09-21 17:44:20 -04:00
2025-09-22 09:29:28 +01:00
2025-09-22 09:29:29 +01:00