summaryrefslogtreecommitdiff
path: root/tools/testing/shared
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2026-01-08 02:19:41 -0700
committerJens Axboe <axboe@kernel.dk>2026-01-12 09:16:38 -0700
commit261b67f4e34716e793b0b95d2722b2fe780ed5f4 (patch)
tree4bbbfd68a1b92f54ddc65b01719dddb9131e7a67 /tools/testing/shared
parentc1d7c0f9cdf6690eff4518f1c17a37d5ee647cd1 (diff)
selftests: ublk: add utility to get block device metadata size
Some block device integrity parameters are available in sysfs, but others are only accessible using the FS_IOC_GETLBMD_CAP ioctl. Add a metadata_size utility program to print out the logical block metadata size, PI offset, and PI size within the metadata. Example output: $ metadata_size /dev/ublkb0 metadata_size: 64 pi_offset: 56 pi_tuple_size: 8 Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/testing/shared')
0 files changed, 0 insertions, 0 deletions