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-11-25 19:20:42 -08:00
2025-11-26 11:20:43 +01:00
2025-09-13 13:47:19 +01:00
2025-11-13 11:17:36 -07:00
2025-07-03 09:25:01 +02:00
2025-11-28 00:07:19 +00:00
2025-11-28 00:07:19 +00:00
2025-11-11 11:20:15 +08:00
2025-08-29 11:04:02 +02:00
2025-08-30 10:15:30 -04:00
2025-07-08 10:23:13 -04:00
2025-11-03 08:30:56 -07:00
2025-11-05 08:07:21 -07:00
2025-12-03 17:24:33 -08:00
2025-11-24 21:56:17 +01:00
2025-07-04 19:21:53 -05:00
2025-06-12 14:00:18 +02:00
2025-11-20 19:01:22 -08:00
2025-11-25 19:20:42 -08:00
2025-10-22 21:44:37 +02:00
2025-11-25 19:20:42 -08:00
2025-06-25 15:24:13 -07:00
2025-11-20 18:21:29 -08:00
2025-09-26 08:36:08 -04:00
2025-06-23 12:45:13 +02:00
2025-10-28 22:59:19 +01:00
2025-11-28 10:55:34 +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-11-25 19:20:42 -08:00
2025-09-17 11:37:23 +02:00
2025-07-14 09:15:58 +02:00
2025-09-24 07:50:09 -07:00
2025-09-11 19:02:50 -07:00
2025-11-27 17:46:54 -08:00
2025-09-19 17:21:55 -07:00
2025-11-25 19:20:42 -08:00
2025-07-08 18:07:26 +02:00
2025-07-10 14:48:29 +02:00
2025-06-10 14:41:14 -07:00
2025-11-17 23:18:32 -08:00
2025-09-15 14:32:54 +02:00
2025-11-26 13:45:23 -07:00
2025-07-18 17:33:08 -03:00
2025-07-25 13:06:19 -07:00
2025-11-06 14:19:20 +02:00
2025-09-09 15:58:56 +02:00
2025-09-13 17:32:43 -07:00
2025-10-07 14:09:19 -04:00
2025-10-10 14:25:23 -07:00
2025-11-25 19:20:42 -08:00
2025-07-08 12:39:24 +02:00
2025-11-27 10:41:31 +01:00
2025-09-13 16:54:41 -07:00
2025-11-12 10:42:49 +01:00
2025-11-25 19:20:42 -08:00
2025-11-04 17:15:06 -08:00
2025-06-30 18:14:23 -07:00
2025-06-25 15:35:20 -07:00
2025-11-25 19:20:42 -08:00
2025-07-25 13:06:19 -07:00
2025-11-25 19:20:42 -08:00
2025-11-25 19:20:42 -08:00
2025-11-25 10:34:55 +01:00
2025-09-19 11:55:56 +02:00
2025-11-03 17:41:18 +01:00
2025-07-07 14:30:39 -07:00
2025-11-25 19:20:42 -08:00
2025-10-03 12:13:14 -05:00
2025-07-24 16:51:46 -05:00
2025-12-02 17:03:55 -08:00
2025-08-20 15:30:36 +02:00
2025-10-30 14:25:14 +01:00
2025-07-23 17:52:07 -07:00
2025-12-04 07:19:26 -07:00
2025-09-13 16:55:05 -07:00
2025-08-16 17:20:23 +08:00
2025-09-17 12:17:05 +02:00
2025-11-25 19:20:42 -08:00
2025-09-25 11:00:59 -07:00
2025-07-07 08:39:33 +02:00
2025-06-18 09:21:58 +02:00
2025-11-04 08:30:09 +01:00
2025-07-14 18:41:42 -07:00
2025-08-28 13:06:48 +02:00
2025-07-25 13:06:19 -07:00
2025-09-18 08:47:52 +02:00
2025-11-10 09:47:54 +01:00
2025-06-19 14:28:22 +02:00
2025-10-27 16:13:42 -07:00
2025-06-30 20:13:42 -06:00
2025-09-04 10:37:05 +02:00
2025-09-09 15:58:44 +02:00
2025-09-21 17:44:20 -04:00
2025-08-05 15:41:14 -06:00
2025-07-08 18:05:23 +02:00
2025-08-26 03:38:19 -04:00
2025-09-09 15:58:56 +02:00
2025-09-22 09:29:28 +01:00
2025-11-04 17:14:07 -08:00
2025-09-22 09:29:29 +01:00
2025-06-24 17:12:59 -07:00
2025-08-01 10:42:22 +02:00
2025-12-02 04:12:49 +01:00