[PATCH 4/5] block: Export integrity data interval size in sysfs

Sagi Grimberg sagig at dev.mellanox.co.il
Wed Jul 22 04:37:08 PDT 2015


On 7/21/2015 9:02 AM, Martin K. Petersen wrote:
> The size of the data interval was not exported in the sysfs integrity
> directory. Export it so that userland apps can tell whether the interval
> is different from the device's logical block size.
>
> Signed-off-by: Martin K. Petersen <martin.petersen at oracle.com>
> ---
>   Documentation/ABI/testing/sysfs-block |  7 +++++++
>   block/blk-integrity.c                 | 14 ++++++++++++++
>   2 files changed, 21 insertions(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-block b/Documentation/ABI/testing/sysfs-block
> index 8df003963d99..a61f1e2165ee 100644
> --- a/Documentation/ABI/testing/sysfs-block
> +++ b/Documentation/ABI/testing/sysfs-block
> @@ -60,6 +60,13 @@ Description:
>   		Indicates whether a storage device is capable of storing
>   		integrity metadata. Set if the device is T10 PI-capable.
>
> +What:		/sys/block/<disk>/integrity/data_interval_bytes

I wander if pi_interval is not a more suitable name...

Otherwise,

Reviewed-by: Sagi Grimberg <sagig at mellanox.com>



More information about the Linux-nvme mailing list