2025-02-16 11:09:01 +01:00
'\" t
2025-02-16 12:16:06 +01:00
. \" Title: nvme-write-zeroes
2025-02-16 12:13:36 +01:00
. \" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
. \" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
2025-02-16 12:27:28 +01:00
. \" Date: 08/02/2024
2025-02-16 11:09:01 +01:00
. \" Manual: NVMe Manual
. \" Source: NVMe
. \" Language: English
. \"
2025-02-16 12:27:28 +01:00
.TH "NVME\-WRITE\-ZEROES" "1" "08/02/2024" "NVMe" "NVMe Manual"
2025-02-16 11:09:01 +01:00
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
nvme-write-zeroes \- Send an NVMe write zeroes command, return results
.SH "SYNOPSIS"
.sp
.nf
\fI nvme\- write\- zeroes\fR <device> [\- \- start\- block=<slba> | \- s <slba>]
[\- \- block\- count=<nlb> | \- c <nlb>]
[\- \- ref\- tag=<reftag> | \- r <reftag>]
[\- \- prinfo=<prinfo> | \- p <prinfo>]
[\- \- app\- tag\- mask=<appmask> | \- m <appmask>]
2025-02-16 12:25:25 +01:00
[\- \- app\- tag=<apptag> | \- a <apptag>] [\- \- deac | \- d]
[\- \- limited\- retry | \- l] [\- \- force\- unit\- access | \- f]
2025-02-16 11:09:01 +01:00
[\- \- namespace\- id=<nsid> | \- n <nsid>]
2025-02-16 12:10:50 +01:00
[\- \- storage\- tag<storage\- tag> | \- S <storage\- tag>]
[\- \- storage\- tag\- check<storage\- tag\- check> | \- C <storage\- tag\- check>]
2025-02-16 12:24:03 +01:00
[\- \- dir\- type=<dtype> | \- T <dtype>]
[\- \- dir\- spec=<dspec> | \- D <dspec>]
2025-02-16 12:25:25 +01:00
[\- \- output\- format=<fmt> | \- o <fmt>] [\- \- verbose | \- v]
2025-02-16 12:27:28 +01:00
[\- \- timeout=<timeout> | \- t <timeout>]
2025-02-16 11:09:01 +01:00
.fi
.SH "DESCRIPTION"
.sp
The Write Zeroes command is used to set a range of logical blocks to 0\& .
.SH "OPTIONS"
.PP
2025-02-16 12:25:25 +01:00
\- s <slba>, \- \- start\- block=<slba>
2025-02-16 11:09:01 +01:00
.RS 4
Start block\& .
.RE
.PP
2025-02-16 12:25:25 +01:00
\- c <nlb>, \- \- block\- count=<nlb>
2025-02-16 11:09:01 +01:00
.RS 4
Number of logical blocks to write zeroes\& .
.RE
.PP
2025-02-16 12:25:25 +01:00
\- p <prinfo>, \- \- prinfo=<prinfo>
2025-02-16 11:09:01 +01:00
.RS 4
Protection Information field definition\& .
.TS
allbox tab(:);
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt.
T{
Bit
T}:T{
Description
T}
T{
3
T}:T{
PRACT: Protection Information Action\& . When set to 1, PI is stripped/inserted on read/write when the block format\(cq s metadata size is 8\& . When set to 0, metadata is passes\& .
T}
T{
2:0
T}:T{
PRCHK: Protection Information Check:
T}
T{
2
T}:T{
Set to 1 enables checking the guard tag
T}
T{
1
T}:T{
Set to 1 enables checking the application tag
T}
T{
0
T}:T{
Set to 1 enables checking the reference tag
T}
.TE
.sp 1
.RE
.PP
2025-02-16 12:25:25 +01:00
\- r <reftag>, \- \- ref\- tag=<reftag>
2025-02-16 11:09:01 +01:00
.RS 4
Optional reftag when used with protection information\& .
.RE
.PP
2025-02-16 12:25:25 +01:00
\- m <appmask>, \- \- app\- tag\- mask=<appmask>
2025-02-16 11:09:01 +01:00
.RS 4
Optional application tag mask when used with protection information\& .
.RE
.PP
2025-02-16 12:25:25 +01:00
\- a <apptag>, \- \- app\- tag=<apptag>
2025-02-16 11:09:01 +01:00
.RS 4
Optional application tag when used with protection information\& .
.RE
.PP
2025-02-16 12:25:25 +01:00
\- l, \- \- limited\- retry
2025-02-16 11:09:01 +01:00
.RS 4
Sets the limited retry flag\& .
.RE
.PP
2025-02-16 12:25:25 +01:00
\- d, \- \- deac
2025-02-16 11:09:01 +01:00
.RS 4
Sets the DEAC bit, requesting controller deallocate the logical blocks\& .
.RE
.PP
2025-02-16 12:25:25 +01:00
\- f, \- \- force\- unit\- access
2025-02-16 11:09:01 +01:00
.RS 4
Set the force\- unit access flag\& .
.RE
.PP
2025-02-16 12:25:25 +01:00
\- n <nsid>, \- \- namespace\- id=<nsid>
2025-02-16 11:09:01 +01:00
.RS 4
Namespace ID use in the command\& .
.RE
2025-02-16 12:10:50 +01:00
.PP
2025-02-16 12:25:25 +01:00
\- S <storage\- tag>, \- \- storage\- tag=<storage\- tag>
2025-02-16 11:09:01 +01:00
.RS 4
2025-02-16 12:16:06 +01:00
Variable Sized Logical Block Storage Tag(LBST)\& .
2025-02-16 11:09:01 +01:00
.RE
2025-02-16 12:10:50 +01:00
.PP
2025-02-16 12:25:25 +01:00
\- C <storage\- tag\- check>, \- \- storage\- tag\- check=<storage\- tag\- check>
2025-02-16 12:10:50 +01:00
.RS 4
This bit specifies the Storage Tag field shall be checked as part of end\- to\- end data protection processing\& .
.RE
2025-02-16 12:15:30 +01:00
.PP
2025-02-16 12:24:03 +01:00
\- T <dtype>, \- \- dir\- type=<dtype>
2025-02-16 12:15:30 +01:00
.RS 4
2025-02-16 12:24:03 +01:00
Directive type
.RE
.PP
\- D <dspec>, \- \- dir\- spec=<dspec>
.RS 4
Directive specific
2025-02-16 12:15:30 +01:00
.RE
2025-02-16 12:25:25 +01:00
.PP
\- o <fmt>, \- \- output\- format=<fmt>
.RS 4
Set the reporting format to
\fI normal\fR ,
\fI json\fR
or
\fI binary\fR \& . Only one output format can be used at a time\& .
.RE
.PP
\- v, \- \- verbose
.RS 4
Increase the information detail in the output\& .
.RE
2025-02-16 12:27:28 +01:00
.PP
\- t <timeout>, \- \- timeout=<timeout>
.RS 4
Override default timeout value\& . In milliseconds\& .
.RE
2025-02-16 12:10:50 +01:00
.SH "EXAMPLES"
.sp
No examples yet\& .
.SH "NVME"
2025-02-16 11:09:01 +01:00
.sp
Part of the nvme\- user suite