Skip to content

Commit 9e87017

Browse files
Hasan Polatigaw
Hasan Polat
authored andcommitted
doc: fix format command info
Protection Information is not only 8 bytes of the metadata, it can also be 16 bytes such as in 32b and 64b guard protection formats. Signed-off-by: Hasan Polat <hasnpol2002@gmail.com>
1 parent 42f788e commit 9e87017

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/nvme-format.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ cryptographically. This is accomplished by deleting the encryption key.
9393
--pil=<pil>::
9494
Protection Information Location: If set to ‘1’ and protection
9595
information is enabled, then protection information is transferred
96-
as the first eight bytes of metadata. If cleared to ‘0’ and
96+
as the first bytes of metadata. If cleared to ‘0’ and
9797
protection information is enabled, then protection information
98-
is transferred as the last eight bytes of metadata. Defaults to 0.
98+
is transferred as the last bytes of metadata. Defaults to 0.
9999

100100
-i <pi>::
101101
--pi=<pi>::

nvme.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6093,7 +6093,7 @@ static int format_cmd(int argc, char **argv, struct command *cmd, struct plugin
60936093
"Can also be used to change LBAF to change the namespaces reported physical block format.";
60946094
const char *lbaf = "LBA format to apply (required)";
60956095
const char *ses = "[0-2]: secure erase";
6096-
const char *pil = "[0-1]: protection info location last/first 8 bytes of metadata";
6096+
const char *pil = "[0-1]: protection info location last/first bytes of metadata";
60976097
const char *pi = "[0-3]: protection info off/Type 1/Type 2/Type 3";
60986098
const char *ms = "[0-1]: extended format off/on";
60996099
const char *reset = "Automatically reset the controller after successful format";

0 commit comments

Comments
 (0)