From: Milan Broz <gmazyland@gmail.com>
To: linux-block@vger.kernel.org
Cc: axboe@kernel.dk, hch@infradead.org, Milan Broz <gmazyland@gmail.com>
Subject: [PATCH] docs: sysfs-block: Clarify integrity sysfs attributes for non-PI metadata
Date: Thu, 27 Feb 2025 15:46:09 +0100 [thread overview]
Message-ID: <20250227144609.35568-1-gmazyland@gmail.com> (raw)
In-Reply-To: <Z73kDfIkgu4v-c9W@infradead.org>
The /sys/block/<disk>/integrity fields are historically set if PI
is enabled. It is not set if some upper layer uses integrity metadata
for non-PI format.
Document it.
Signed-off-by: Milan Broz <gmazyland@gmail.com>
---
Documentation/ABI/stable/sysfs-block | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/Documentation/ABI/stable/sysfs-block b/Documentation/ABI/stable/sysfs-block
index 0cceb2badc83..f67fd46f15b6 100644
--- a/Documentation/ABI/stable/sysfs-block
+++ b/Documentation/ABI/stable/sysfs-block
@@ -109,6 +109,8 @@ Contact: Martin K. Petersen <martin.petersen@oracle.com>
Description:
Indicates whether a storage device is capable of storing
integrity metadata. Set if the device is T10 PI-capable.
+ This flag is set if a PI profile is enabled.
+ It is not set when non-PI metadata are used.
What: /sys/block/<disk>/integrity/format
@@ -117,6 +119,8 @@ Contact: Martin K. Petersen <martin.petersen@oracle.com>
Description:
Metadata format for integrity capable block device.
E.g. T10-DIF-TYPE1-CRC.
+ If the storage device supports metadata but no PI
+ is used, this field will contain "nop".
What: /sys/block/<disk>/integrity/protection_interval_bytes
@@ -142,7 +146,10 @@ Date: June 2008
Contact: Martin K. Petersen <martin.petersen@oracle.com>
Description:
Number of bytes of integrity tag space available per
- 512 bytes of data.
+ protection_interval_bytes, which is typically
+ the device's logical block size.
+ If the storage device supports metadata but no PI
+ is used, this field will contain 0.
What: /sys/block/<disk>/integrity/write_generate
--
2.47.2
next prev parent reply other threads:[~2025-02-27 14:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20250225092525epcas5p31dd0a19ffdfb39f3f2ce4acd1c6da7ee@epcas5p3.samsung.com>
2025-02-25 9:23 ` sysfs integrity fields use Milan Broz
2025-02-25 10:10 ` Kanchan Joshi
2025-02-25 10:44 ` Kanchan Joshi
2025-02-25 11:03 ` Milan Broz
2025-02-26 10:04 ` Kanchan Joshi
2025-02-25 15:38 ` Christoph Hellwig
2025-02-26 14:02 ` Milan Broz
2025-02-27 14:46 ` Milan Broz [this message]
2025-03-03 17:25 ` [PATCH] docs: sysfs-block: Clarify integrity sysfs attributes for non-PI metadata Martin K. Petersen
2025-03-03 18:52 ` Milan Broz
2025-03-06 2:28 ` Martin K. Petersen
2025-03-18 15:44 ` [PATCH] docs: sysfs-block: Clarify integrity sysfs attributes Milan Broz
2025-03-20 7:04 ` Christoph Hellwig
2025-03-20 11:44 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250227144609.35568-1-gmazyland@gmail.com \
--to=gmazyland@gmail.com \
--cc=axboe@kernel.dk \
--cc=hch@infradead.org \
--cc=linux-block@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox