Skip to content

Commit 144c5d6

Browse files
francispravin5igaw
authored andcommitted
doc: Add write zeroes command namespace-zeroes option
Add Namespace Zeroes (NSZ) option of Write Zeroes command. Signed-off-by: Francis Pravin <[email protected]>
1 parent 7d6cf87 commit 144c5d6

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Documentation/nvme-write-zeroes.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ SYNOPSIS
1919
[--storage-tag<storage-tag> | -S <storage-tag>]
2020
[--storage-tag-check<storage-tag-check> | -C <storage-tag-check>]
2121
[--dir-type=<dtype> | -T <dtype>]
22-
[--dir-spec=<dspec> | -D <dspec>]
22+
[--dir-spec=<dspec> | -D <dspec>] [--namespace-zeroes | -Z]
2323
[--output-format=<fmt> | -o <fmt>] [--verbose | -v]
2424
[--timeout=<timeout> | -t <timeout>]
2525

@@ -97,6 +97,9 @@ metadata is passes.
9797
-D <dspec>::
9898
--dir-spec=<dspec>::
9999
Directive specific
100+
-Z::
101+
--namespace-zeroes::
102+
If set, then the controller clear all logical blocks to zero in the entire namespace.
100103

101104
-o <fmt>::
102105
--output-format=<fmt>::

completions/_nvme

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,8 @@ _nvme () {
14551455
-C':alias of --storage-tag-check'
14561456
--dir-spec=':directive specific'
14571457
-D':alias of --dir-spec'
1458+
--namespace-zeroes':If set, then the controller clear all logical blocks to zero in the entire namespace'
1459+
-Z':alias of --namespace-zeroes'
14581460
--timeout=':value for timeout'
14591461
-t':alias of --timeout'
14601462
)

completions/bash-nvme-completion.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ nvme_list_opts () {
340340
--force-unit-access -f --prinfo= -p --ref-tag= -r \
341341
--app-tag-mask= -m --app-tag= -a \
342342
--storage-tag= -S --storage-tag-check -C \
343-
--dir-type= -T --dir-spec= -S --timeout= -t"
343+
--dir-type= -T --dir-spec= -S --namespace-zeroes -Z \
344+
--timeout= -t"
344345
;;
345346
"write-uncor")
346347
opts+=" --namespace-id= -n --start-block= -s \
@@ -1660,7 +1661,7 @@ _nvme_subcmds () {
16601661
security-send security-recv get-lba-status \
16611662
resv-acquire resv-register resv-release \
16621663
resv-report dsm copy flush compare read \
1663-
write write-zeros write-uncor verify \
1664+
write write-zeroes write-uncor verify \
16641665
sanitize sanitize-log reset subsystem-reset \
16651666
ns-rescan show-regs discover connect-all \
16661667
connect disconnect disconnect-all gen-hostnqn \

0 commit comments

Comments
 (0)