Hi all, This patch series adds a new ioctl to query integrity capability. Patch 1 adds a pi_size field in blk_integrity struct which is later used to export this value to the user as well. Patch 2 introduces a new ioctl to query integrity capability. v1 -> v2 introduce metadata_size, storage_tag_size and ref_tag_size field in the uapi struct (Martin) uapi struct fields comment improvements (Martin) add csum_type definitions to the uapi file (Martin) add fpc_* prefix to uapi struct fields (Andreas) bump the size of rsvd and hence the uapi struct to 32 bytes (Andreas) use correct value for ioctl (Andreas) use clearer names for CRC (Eric) Anuj Gupta (2): block: introduce pi_size field in blk_integrity fs: add ioctl to query protection info capabilities block/blk-integrity.c | 41 +++++++++++++++++++++++++++++++++++ block/ioctl.c | 3 +++ drivers/nvme/host/core.c | 1 + drivers/scsi/sd_dif.c | 1 + include/linux/blk-integrity.h | 6 +++++ include/linux/blkdev.h | 1 + include/uapi/linux/fs.h | 38 ++++++++++++++++++++++++++++++++ 7 files changed, 91 insertions(+) -- 2.25.1