-
Notifications
You must be signed in to change notification settings - Fork 669
/
Copy path_nvme
2929 lines (2923 loc) · 103 KB
/
_nvme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#compdef _nvme nvme
# SPDX-License-Identifier: GPL-2.0-or-later
# zsh completions for the nvme command-line interface,
# very loosely based on git and adb command completion
# Kelly Kaoudis kelly.n.kaoudis at intel.com, June 2015
_nvme () {
local -a _cmds
_cmds=(
'list:identify basic information for all NVMe namespaces'
'list-subsys:identify information for subsystems'
'id-ctrl:display information about the controller'
'id-ns:display information about the namespace'
'id-ns-granularity:display namespace granularity list'
'id-ns-lba-format:display information about the namespace capability fields for specific LBA format'
'list-ns:identify all namespace(s) attached'
'cmdset-ind-id-ns:display I/O Command Set Independent information about the namespace'
'id-iocs:display information about I/O command sets'
'id-domain:display information about domain list'
'create-ns:create a new namespace before attachment'
'delete-ns:delete a detached namespace'
'attach-ns:attach namespace to controller'
'detach-ns:detach namespace from controller'
'list-ctrl:identify all controller(s) attached'
'nvm-id-ctrl:display information about the nvm command set'
'nvm-id-ns:display information about the namespace of nvm command set'
'nvm-id-ns-lba-format:display information about the namespace of nvm command set capability fields for specific LBA format'
'primary-ctrl-caps:display primary controller capabilities'
'list-secondary:identify secondary controller list associated with the primary controller'
'ns-descs:display namespace identification descriptors'
'id-nvmset:display entries for NVM Set identifiers'
'id-uuid:display list of supported Vendor Specific UUIDs'
'list-endgrp:display information about nvme endurance group list'
'get-ns-id:get namespace id of opened block device'
'get-log:retrieve any log in raw format'
'predictable-lat-log:retrieve predictable latency per nvmset log'
'pred-lat-event-agg-log:retrieve predictable latency event aggregate log'
'persistent-event-log:retrieve persistent event log'
'telemetry-log:retrieve telemetry log'
'fw-log:retrieve fw log'
'changed-ns-list-log:retrieve changed namespaces log'
'smart-log:retrieve SMART log'
'smart-log-add:retrieve additional SMART log'
'ana-log:retrieve ANA log'
'error-log:retrieve error log'
'effects-log:retrieve command effects log page and print the table'
'endurance-log:retrieves endurance groups log page and prints the log'
'endurance-event-agg-log:retrieve endurance group event aggregate log'
'lba-status-log:retrieve lba status log'
'resv-notif-log:retrieve reservation notification log'
'get-feature:display a controller feature'
'device-self-test:implementing the device self-test feature'
'self-test-log:retrieve the self-test log'
'set-feature:set a controller feature and show results'
'set-property:writes and shows the defined NVMe controller property for NVMe over Fabric'
'get-property:Reads and shows the defined NVMe controller property for NVMe over Fabric'
'format:apply new block format to namespace'
'fw-commit:verify and commit firmware to a specific slot (fw-activate in old version < 1.2)'
'fw-download:download a firmware to the device'
'admin-passthru:submit a passthrough admin command IOCTL'
'io-passthru:submit a passthrough io command IOCTL'
'security-send:send security/secure data to controller'
'security-recv:ask for security/secure data from controller'
'get-lba-status:display information about potentially unrecoverable LBAs'
'resv-acquire:acquire reservation on a namespace'
'resv-register:register reservation on a namespace'
'resv-release:release reservation on a namespace'
'resv-report:report reservation on a namespace'
'dsm:submit a Data Set Management command'
'copy:submit a simple copy command'
'flush:submit a flush'
'compare:compare data on device to data elsewhere'
'read:submit a read command'
'write:submit a write command'
'capacity-mgmt:submit capacity management command'
'write-zeroes:submit an NVMe write zeroes command'
'write-uncor:submit an NVMe write uncorrectable command'
'verify:submit an NVMe Verify command'
'sanitize:submit a sanitize command'
'sanitize-log:retrieve sanitize log and show it'
'reset:reset the NVMe controller'
'subsystem-reset:reset the NVMe subsystem'
'ns-rescan:rescan the NVMe namespaces'
'show-regs:show the controller registers; require admin character device'
'boot-part-log:retrieve boot partition log'
'fid-support-effects-log:retrieve fid support and effects log'
'supported-log-pages:retrieve support log pages details'
'lockdown:submit a lockdown command'
'media-unit-stat-log:retrieve media unit status log pages details'
'supported-cap-config-log:retrieve the list of Supported Capacity Configuration Descriptors'
'rotational-media-info-log:retrieve rotational media information log'
'discover:send Get Log Page request to Discovery Controller'
'connect-all:discover NVMeoF subsystems and connect to them'
'connect:connect to NVMeoF subsystem'
'dim:send Discovery Information Management command to a Discovery Controller (DC)'
'disconnect:disconnect from NVMeoF subsystem'
'disconnect-all:disconnect from all connected NVMeoF subsystems'
'gen-hostnqn:generate a host NVMe Qualified Name'
'show-hostnqn:show the host NQN configured for the system'
'tls-key:manipulate NVMeoF TLS PSK'
'dir-receive:read directive parameters of the specified directive type'
'dir-send:set directive parameters of the specified directive type'
'virt-mgmt:submit a Virtualization Management command'
'rpmb:submit an NVMe RPMB command'
'show-topology:show subsystem topology'
'nvme-mi-recv:send a NVMe-MI receive command'
'nvme-mi-send:send a NVMe-MI send command'
'get-reg:read and show the defined NVMe controller register'
'set-reg:write and show the defined NVMe controller register'
'io-mgmt-recv:send an I/O management receive command'
'io-mgmt-send:send an I/O management send command'
'mgmt-addr-list-log:retrieve management address list log'
'changed-ns-list-log:retrieve changed allocated namespaces log'
'dispersed-ns-participating-nss-log:retrieve dispersed namespace participating NVM subsystems log'
'reachability-groups-log:retrieve reachability groups log'
'reachability-associations-log:retrieve reachability associations log'
'host-discovery-log:retrieve host discovery log'
'ave-discovery-log:retrieve ave discovery log'
'pull-model-ddr-req-log:retrieve pull model ddr req log'
'version:show the program version'
'ocp:OCP cloud SSD extensions'
'solidigm:Solidigm plug-in extensions'
'fdp:FDP plug-in extensions'
'micron:Micron plug-in extensions'
'dapustor:DapuStor plug-in extensions'
'help:print brief descriptions of all nvme commands'
'json:dump output in json format'
)
local expl
_arguments '*:: :->subcmds' && return 0
if (( CURRENT == 1 )); then
_describe -t commands "nvme subcommands" _cmds
return
elif (( CURRENT > 2 )); then
case ${words[1]} in
(ocp)
case ${words[2]} in
(smart-add-log)
local _smart_add_log
_smart_add_log=(
/dev/nvme':supply a device to use (required)'
--output-format=':Output format: normal|json'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp smart-add-log options" _smart_add_log
;;
(latency-monitor-log)
local _latency_monitor_log
_latency_monitor_log=(
/dev/nvme':supply a device to use (required)'
--output-format=':Output format: normal|json'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp latency-monitor-log options" _latency_monitor_log
;;
(set-latency-monitor-feature)
local _set_latency_monitor_feature
_set_latency_monitor_feature=(
/dev/nvme':supply a device to use (required)'
--active_bucket_timer_threshold=':Active Bucket Timer Threshold'
-t':alias for --active_bucket_timer_threshold'
--active_threshold_a=':Active Threshold A'
-a':alias for --active_threshold_a'
--active_threshold_a=':Active Threshold B'
-b':alias for --active_threshold_b'
--active_threshold_c=':Active Threshold C'
-c':alias for --active_threshold_c'
--active_threshold_d=':Active Threshold D'
-d':alias for --active_threshold_d'
--active_latency_config=':Active Latency Configuration'
-f':alias for --active_latency_config'
--active_latency_minimum_window=':Active Latency Minimum Window'
-w':alias for --active_latency_minimum_window'
--debug_log_trigger_enable='Debug Log Trigger Enable'
-r':alias for --debug_log_trigger_enable'
--discard_debug_log='Discard Debug Log'
-l':alias for --discard_debug_log'
--latency_monitor_feature_enable='Latency Monitor Feature Enable'
-e':alias for --latency_monitor_feature_enable'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp set-latency-monitor-feature options" _set_latency_monitor_feature
;;
(internal-log)
local _internal_log
_internal_log=(
/dev/nvme':supply a device to use (required)'
--telemetry-type=':Telemetry Type; host, host0, host1 or controller generated'
-t':alias for --telemetry-type'
--data-area=':Telemetry Data Area; 1 or 2'
-a':alias for --data-area'
--output-file=':Output file name with path'
-o':alias for --output-file'
--telemetry-log=':Telemetry log binary'
-l':alias for --telemetry-log'
--string-log=':String log binary'
-s':alias for --string-log'
--output-format':Output format: normal|json'
-f':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp internal-log options" _internal_log
;;
(clear-fw-activate-history)
local _clear_fw_activate_history
_clear_fw_activate_history=(
/dev/nvme':supply a device to use (required)'
--no-uuid':Skip UUID index search'
-n':alias for --no-uuid'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp clear-fw-activate-history options" _clear_fw_activate_history
;;
(eol-plp-failure-mode)
local _eol_plp_failure_mode
_eol_plp_failure_mode=(
/dev/nvme':supply a device to use (required)'
--mode=':0-3: default/rom/wtm/normal'
-m':alias for --mode'
--save':Specifies that the controller shall save the attribute'
-s':alias for --save'
--sel=':0-3,8: current/default/saved/supported/changed:'
-S':alias for --sel'
--no-uuid':Skip UUID index search'
-n':alias for --no-uuid'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp eol-plp-failure-mode options" _eol_plp_failure_mode
;;
(clear-pcie-correctable-error-counters)
local _clear_pcie_correctable_error_counters
_clear_pcie_correctable_error_counters=(
/dev/nvme':supply a device to use (required)'
--no-uuid':Skip UUID index search'
-n':alias for --no-uuid'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp clear-pcie-correctable-error-counters options" _clear_pcie_correctable_error_counters
;;
(fw-activate-history)
local _fw_activate_history
_fw_activate_history=(
/dev/nvme':supply a device to use (required)'
--output-format=':Output format: normal|json'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp fw-activate-history options" _fw_activate_history
;;
(device-capability-log)
local _device_capability_log
_device_capability_log=(
/dev/nvme':supply a device to use (required)'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp device-capability-log options" _device_capability_log
;;
(set-dssd-power-state-feature)
local _set_dssd_power_state_feature
_set_dssd_power_state_feature=(
/dev/nvme':supply a device to use (required)'
--power-state=':DSSD Power State to set in watts'
-p':alias for --power-state'
--save':Specifies that the controller shall save the attribute'
-s':alias for --save'
--no-uuid':Skip UUID index search'
-n':alias for --no-uuid'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp set-dssd-power-state-feature options" _set_dssd_power_state_feature
;;
(get-dssd-power-state-feature)
local _get_dssd_power_state_feature
_get_dssd_power_state_feature=(
/dev/nvme':supply a device to use (required)'
--sel=':select from 0 - current, 1 - default, 2 - saved, 3 - supported'
-S':alias to --sel'
--all=':Print out all 3 values at once - current, default, and saved'
-a':alias to --all'
--no-uuid':Skip UUID index search'
-n':alias for --no-uuid'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp get-dssd-power-state-feature options" _get_dssd_power_state_feature
;;
(telemetry-string-log)
local _telemetry_string_log
_telemetry_string_log=(
/dev/nvme':supply a device to use (required)'
--output-file=':Output file name with path'
-o':alias for --output-file'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp telemetry-string-log options" _telemetry_string_log
;;
(set-dssd-async-event-config)
local _set_dssd_async_event_config
_set_dssd_async_event_config=(
/dev/nvme':supply a device to use (required)'
--enable-panic-notices':Specifies whether an asynchronous event notification
is sent to the host for a panic event'
-e':alias for --enable-panic-notices'
--save':Specifies that the controller shall save the attribute'
-s':alias for --save'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp set-dssd-async-event-config options" _set_dssd_async_event_config
;;
(get-dssd-async-event-config)
local _get_dssd_async_event_config
_get_dssd_async_event_config=(
/dev/nvme':supply a device to use (required)'
--sel=':select from 0 - current, 1 - default, 2 - saved, 3 - supported'
-S':alias to --sel'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp get-dssd-async-event-config options" _get_dssd_async_event_config
;;
(tcg-configuration-log)
local _ocp_tcg_configuration_log
_ocp_tcg_configuration_log=(
/dev/nvme':supply a device to use (required)'
--output-format=':Output format: normal|json'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp tcg-configuration-log options" _ocp_tcg_configuration_log
;;
(get-error-injection)
local _get_error_injection
_get_error_injection=(
/dev/nvme':supply a device to use (required)'
--sel=':0-3: current/default/saved/supported/changed:'
-s':alias for --sel'
--no-uuid':Skip UUID index search'
-n':alias for --no-uuid'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp get-error-injection options" _get_error_injection
;;
(set-error-injection)
local _set_error_injection
_set_error_injection=(
/dev/nvme':supply a device to use (required)'
--data=':Error injection data structure entries'
-d':alias for --data'
--number=':Number of valid error injection data entries'
-n':alias for --number'
--no-uuid':Skip UUID index search'
-N':alias for --no-uuid'
--type=':Error injection type'
-t':alias for --type'
--nrtdp=':Number of reads to trigger device panic'
-r':alias for --nrtdp'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--output-format=':Output format: normal|json|binary'
-o ':alias for --output-format'
--timeout=':value for timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp set-error-injection options" _set_error_injection
;;
(hardware-component-log)
local _hardware_component_log
_hardware_component_log=(
/dev/nvme':supply a device to use (required)'
--comp-id=':component identifier'
-i':alias for --comp-id'
--list':list component descriptions'
-l':alias for --list'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--output-format=':Output format: normal|json|binary'
-o ':alias for --output-format'
--timeout=':value for timeout'
-t ':alias for --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp hardware-component-log options" _hardware_component_log
(set-telemetry-profile)
local _ocp_set_telemetry_profile_feature
_ocp_set_telemetry_profile_feature=(
/dev/nvme':supply a device to use (required)'
--telemetry-profile-select=':Telemetry Profile Select'
-t':alias for --telemetry-profile-select'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp set-telemetry-profile options" _ocp_set_telemetry_profile_feature
;;
(*)
_files
;;
esac
;;
(solidigm)
case ${words[2]} in
(id-ctrl)
local _id_ctrl
_id_ctrl=(
--verbose':Increase output verbosity'
-v':alias for --verbose'
--output-format':Output format: normal|json|binary'
-o':alias for --output-format'
--vendor-specific':dump binary vendor field'
-V':alias for --vendor-specific'
--raw-binary':show identify in binary format'
-b':alias for --raw-binary'
--human-readable':show identify in readable format'
-H':alias for --human-readable'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm id-ctrl options" _id_ctrl
;;
(smart-log-add)
local _smart_log_add
_smart_log_add=(
--namespace-id':(optional) desired namespace'
-n':alias for --namespace-id'
--output-format':Output format: normal|json|binary'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm smart-log-add options" _smart_log_add
;;
(vs-smart-add-log)
local _vs_smart_add_log
_vs_smart_add_log=(
--output-format':output Format: normal|json'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm vs-smart-add-log options" _vs_smart_add_log
;;
(vs-internal-log)
local _vs_internal_log
_vs_internal_log=(
--type':Log type: ALL, CIT, HIT, NLOG, ASSERT, EVENT. Defaults to ALL.'
-t':alias for --type'
--dir-name':Output directory; defaults to current working directory.'
-d':alias for --dir-name'
--verbose':To print out verbose info.'
-v':alias for --verbose'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm vs-internal-log" _vs_internal_log
;;
(garbage-collect-log)
local _garbage_collect_log
_garbage_collect_log=(
--output-format':Output format: normal|json|binary'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm garbage-collect-log" _garbage_collect_log
;;
(market-log)
local _market_log
_market_log=(
--raw-binary':dump output in binary format'
-b':alias for --raw-binary'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm market-log" _market_log
;;
(latency-tracking-log)
local _latency_tracking_log
_latency_tracking_log=(
--enable':Enable Latency Tracking'
-e':alias for --enable'
--disable':Disable Latency Tracking'
-d':alias for --disable'
--read':Get read statistics'
-r':alias for --read'
--write':Get write statistics'
-w':alias for --write'
--type':Log type to get'
-t':alias for --type'
--output-format':Output format: normal|json|binary'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm latency-tracking-log" _latency_tracking_log
;;
(parse-telemetry-log)
local _parse_telemetry_log
_parse_telemetry_log=(
--host-generate':Controls when to generate new
host initiated report. Default
value '1' generates new host
initiated report, value '0'
causes retrieval of existing
log.'
-g':alias for --host-generate'
--controller-init':Gather report generated by the controller.'
-c':alias for --controller-init'
--data-area':Pick which telemetry data area to
report. Default is 3 to fetch
areas 1-3. Valid options are 1,
2, 3, 4.'
-d':alias for --data-area'
--config-file':JSON configuration file'
-j':alias for --config-file'
--source-file':data source <device> is binary
file containing log dump instead
of block or character device'
-s':alias for --source-file'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm parse-telemetry-log" _parse_telemetry_log
;;
(clear-pcie-correctable-errors)
local _clear_pcie_correctable_errors
_clear_pcie_correctable_errors=(
--no-uuid':Skip UUID index search (UUID index not required for OCP 1.0)'
-n':alias for --no-uuid'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm clear-pcie-correctable-errors" _clear_pcie_correctable_errors
;;
(clear-fw-activate-history)
local _clear_fw_activate_history
_clear_fw_activate_history=(
--no-uuid':Skip UUID index search (UUID index not required for OCP 1.0)'
-n':alias for --no-uuid'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm clear-fw-activate-history" _clear_fw_activate_history
;;
(vs-fw-activate-history)
local _vs_fw_activate_history
_vs_fw_activate_history=(
--output-format':output format : normal | json'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm vs-fw-activate-history" _vs_fw_activate_history
;;
(log-page-directory)
local _log_page_directory
_log_page_directory=(
--output-format':output format : normal | json'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm log-page-directory" _log_page_directory
;;
(temp-stats)
local _temp_stats
_temp_stats=(
--raw-binary':dump output in binary format'
-b':alias for --raw-binary'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm temp-stats" _temp_stats
;;
(vs-drive-info)
local _vs_drive_info
_vs_drive_info=(
--output-format':output format : normal | json'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm vs-drive-info" _vs_drive_info
;;
(workload-tracker)
local _workload_tracker
_workload_tracker=(
--enable':Enable Workload Tracker'
-e':alias for --enable'
--disable':Disable Workload Tracker'
-d':alias for --disable'
--sample-time=':Sample time in seconds'
-s':alias for --sample-time'
--type=':Workload Tracker type'
-t':alias for --type'
--run-time=':Run time in seconds'
-r':alias for --run-time'
--flush-freq=':Flush frequency in seconds'
-f':alias for --flush-freq'
--wall-clock':Use wall clock time'
-w':alias for --wall-clock'
--trigger-field=':Trigger field'
-T':alias for --trigger-field'
--trigger-threshold=':Trigger threshold'
-V':alias for --trigger-threshold'
--trigger-on-delta':Trigger on delta'
-D':alias for --trigger-on-delta'
--trigger-on-latency':Trigger on latency'
-L':alias for --trigger-on-latency'
--verbose':Increase output verbosity'
-v':alias for --verbose'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm workload-tracker options" _workload_tracker
;;
(*)
_files
;;
esac
;;
(fdp)
case ${words[2]} in
(feature)
local _feature
_feature=(
--endgrp-id=':Endurance group ID'
-e':alias for --endgrp-id'
--enable-conf-idx=':FDP configuration index to enable'
-c':alias for --enable-conf-idx'
--disable=':Disable current FDP configuration'
-d':alias for --disable'
--verbose=':Increase output verbosity'
-v':alias for --verbose'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme fdp feature options" _feature
;;
(*)
_files
;;
esac
;;
(dapustor)
case ${words[2]} in
(smart-log-add)
local _smart_log_add
_smart_log_add=(
--namespace-id':(optional) desired namespace'
-n':alias for --namespace-id'
--output-format':Output format: normal|json|binary'
-o':alias for --output-format'
--raw-binary':dump log in binary format'
-b':alias of --raw-binary'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme dapustor smart-log-add options" _smart_log_add
;;
(*)
_files
;;
esac
;;
(sanitize)
case ${words[CURRENT-1]} in
(--sanact=|-a)
_values '' 'exit-failure' 'start-block-erase' 'start-overwrite' 'start-crypto-erase'
;;
(*)
_files
;;
esac
;;
(*)
_files
;;
esac
return
else
case ${words[CURRENT-1]} in
(list)
local _list
_list=(
--output-format=':Output format: normal|json'
-o':alias for --output-format'
--verbose':show infos verbosely'
-v':alias of --verbose'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme list options" _list
;;
(list-subsys)
local _listsubsys
_listsubsys=(
--output-format=':Output format: normal|json'
-o':alias for --output-format'
--verbose':show infos verbosely'
-v':alias of --verbose'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme list-subsys options" _listsubsys
;;
(id-ctrl)
local _idctrl
_idctrl=(
/dev/nvme':supply a device to use (required)'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
--vendor-specific':also dump binary vendor infos'
-V':alias of --vendor-specific'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme id-ctrl options" _idctrl
;;
(id-ns)
local _idns
_idns=(
/dev/nvme':supply a device to use (required)'
--namespace-id=':show infos for namespace <nsid>'
-n':alias of --namespace-id'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
--vendor-specific':also dump binary vendor infos'
-V':alias of --vendor-specific'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme id-ns options" _idns
;;
(id-ns-granularity)
local _idns_granularity
_idns_granularity=(
/dev/nvme':supply a device to use (required)'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme id-ns-granularity options" _idns_granularity
;;
(id-ns-lba-format)
local _idns_lba_format
_idns_lba_format=(
/dev/nvme':supply a device to use (required)'
--lba-format-index=':show infos for lba format index <lba-format-index>'
-i':alias of --lba-format-index'
--uuid-index=':uuid index'
-U':alias for --uuid-index'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
--verbose':show infos verbosely'
-v':alias of --verbose'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme id-ns-lba-format options" _idns_lba_format
;;
(list-ns)
local _listns
_listns=(
/dev/nvme':supply a device to use (required)'
--namespace-id=':start namespace infos listing with this nsid'
-n':alias of --namespace-id'
--csi=':command set identifier'
-y':alias of --csi'
--all':show all namespaces in the subsystem, whether attached or inactive'
-a':alias of --all'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
--timeout=':value for timeout'
-t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme list-ns options" _listns
;;
(cmdset-ind-id-ns)
local _cmdset_ind_idns
_cmdset_ind_idns=(
/dev/nvme':supply a device to use (required)'
--namespace-id=':show infos for namespace <nsid>'
-n':alias of --namespace-id'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme cmdset-ind-id-ns options" _cmdset_ind_idns
;;
(id-iocs)
local _idiocs
_idiocs=(
/dev/nvme':supply a device to use (required)'
--controller-id=':show infos for controller <cntid>'
-c':alias of --controller-id'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme id-iocs options" _idiocs
;;
(id-domain)
local _iddomain
_iddomain=(
/dev/nvme':supply a device to use (required)'
--dom-id=':show infos for domain id <cntid>'
-d':alias of --dom-id'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme id-domain options" _iddomain
;;
(nvm-id-ctrl)
local _nvmidctrl
_nvmidctrl=(
/dev/nvme':supply a device to use (required)'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme nvm-id-ctrl options" _nvmidctrl
;;
(nvm-id-ns)
local _nvmidns
_nvmidns=(
/dev/nvme':supply a device to use (required)'
--namespace-id=':show infos for namespace <nsid>'
-n':alias of --namespace-id'
--uuid-index=':uuid index'
-U':alias for --uuid-index'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
--verbose':show infos verbosely'
-v':alias of --verbose'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme nvm-id-ns options" _nvmidns
;;
(nvm-id-ns-lba-format)
local _nvm_idns_lba_format
_nvm_idns_lba_format=(
/dev/nvme':supply a device to use (required)'
--lba-format-index=':show infos for lba format index <lba-format-index>'
-i':alias of --lba-format-index'
--uuid-index=':uuid index'
-U':alias for --uuid-index'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
--verbose':show infos verbosely'
-v':alias of --verbose'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme nvm-id-ns-lba-format options" _nvm_idns_lba_format
;;
(primary-ctrl-caps)
local _primary_ctrl_caps
_primary_ctrl_caps=(
/dev/nvme':supply a device to use (required)'
--cntlid=':show infos for controller <cntid>'
-c':alias of --cntlid'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme primary-ctrl-caps options" _primary_ctrl_caps
;;
(list-secondary)
local _listsecondary
_listsecondary=(
/dev/nvme':supply a device to use (required)'
--cntid=':show infos for lowest controller <cntid>'
-c':alias of --cntid'
--namespace-id=':show infos for namespace <nsid>'
-n':alias of --namespace-id'
--num-entries=':number of entries to retrieve'
-e':alias of --num-entries'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme list-secondary options" _listsecondary
;;
(ns-descs)
local _ns_descs
_ns_descs=(
/dev/nvme':supply a device to use (required)'
--namespace-id=':show infos for namespace <nsid>'
-n':alias of --namespace-id'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ns-descs options" _ns_descs
;;
(id-nvmset)
local _id_nvmset
_id_nvmset=(
/dev/nvme':supply a device to use (required)'
--nvmset_id=':NVM Set Identify value'
-i':alias of --nvmset_id'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme id-nvmset options" _id_nvmset
;;
(id-uuid)
local _id_uuid
_id_uuid=(
/dev/nvme':supply a device to use (required)'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme id-uuid options" _id_uuid
;;
(list-endgrp)
local _listendgrp
_listendgrp=(
/dev/nvme':supply a device to use (required)'
--endgrp-id=':endurance group id'
-i':alias of --endgrp-id'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme list-endgrp options" _listendgrp
;;
(create-ns)
local _createns
_createns=(
/dev/nvme':supply a device to use (required)'
--nsze=':namespace size to create'
-s':alias of --nsze'
--ncap=':namespace capacity'
-c':alias of --ncap'
--flbas=':FLBA size'
-f':alias of --flbas'
--dps=':data protection?'
-d':alias of --dps'
--nmic=':multipath and sharing'
-m':alias of --nmic'
--anagrp-id=':ANA Group Identifier'
-a':alias of --anagrp-id'
--nvmset-id=':NVM Set Identifier'
-i':alias of --nvmset-id'
--endg-id=':Endurance Group Identifier'
-e':alias of --endg-id'
--block-size=':target block size'
-b':alias of --block-size'
--timeout=':value for timeout'
-t':alias of --timeout'
--csi=':command set identifier'
-y':alias of --csi'
--lbstm=':logical block storage tag mask'
-l':alias of --lbstm'
--nsze-si=':size of ns (NSZE) in standard SI units'
-S':alias of --nsze-si'
--ncap-si=':capacity of ns (NCAP) in standard SI units'
-C':alias of --ncap-si'
--azr=':Allocate ZRWA Resources (AZR) for Zoned Namespace Command Set'
-z':alias of --azr'
--rar=':Requested Active Resources (RAR) for Zoned Namespace Command Set'
-r':alias of --rar'
--ror=':Requested Open Resources (ROR) for Zoned Namespace Command Set'
-O':alias of --ror'
--rnumzrwa=':Requested Number of ZRWA Resources (RNUMZRWA) for Zoned Namespace Command Set'
-u':alias of --rnumzrwa'
--phndls=':Comma separated list of Placement Handle Associated RUH'
-p':alias of --phndls'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme create-ns options" _createns
;;
(delete-ns)
local _deletens
_deletens=(
/dev/nvme':supply a device to use (required)'
--namespace-id=':namespace to delete'
-n':alias of --namespace-id'
--timeout=':value for timeout'
-t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme delete-ns options" _deletens
;;
(attach-ns)
local _attachns
_attachns=(
/dev/nvme':supply a device to use (required)'
--namespace-id=':namespace to attach to the controller'
-n':alias of --namespace-id'
--controllers=':if a device is not provided, supply a comma-sep list of controllers'
-c':alias of --controllers'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme attach-ns options" _attachns
;;
(detach-ns)
local _detachns
_detachns=(
/dev/nvme':supply a device to use (required)'
--namespace-id=':namespace to detach from controller'
-n':alias of --namespace-id'
--controllers=':if a device is not provided, supply a comma-sep list of controllers'
-c':alias of --controllers'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme detach-ns options" _detachns
;;