From dfd610480043027a14ed683faebb8d2b3b3d1508 Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Sat, 13 Jan 2024 21:08:31 +0900 Subject: [PATCH] completions: Add latency default option for remaining commands Note: Commands using NVME_ARGS are added the option as default. Signed-off-by: Tokunori Ikegami --- completions/_nvme | 60 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/completions/_nvme b/completions/_nvme index 6c7d6524e6..edf1fab7a8 100644 --- a/completions/_nvme +++ b/completions/_nvme @@ -292,6 +292,8 @@ _nvme () { -o':alias for --output-format' --verbose':show infos verbosely' -v':alias of --verbose' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme list options" _list @@ -303,6 +305,8 @@ _nvme () { -o':alias for --output-format' --verbose':show infos verbosely' -v':alias of --verbose' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme list-subsys options" _listsubsys @@ -359,6 +363,8 @@ _nvme () { -o':alias for --output-format' --verbose':show infos verbosely' -v':alias of --verbose' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme id-ns-lba-format options" _idns_lba_format @@ -417,6 +423,8 @@ _nvme () { local _nvmidctrl _nvmidctrl=( /dev/nvme':supply a device to use (required)' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme nvm-id-ctrl options" _nvmidctrl @@ -433,6 +441,8 @@ _nvme () { -o':alias for --output-format' --verbose':show infos verbosely' -v':alias of --verbose' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme nvm-id-ns options" _nvmidns @@ -449,6 +459,8 @@ _nvme () { -o':alias for --output-format' --verbose':show infos verbosely' -v':alias of --verbose' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme nvm-id-ns-lba-format options" _nvm_idns_lba_format @@ -463,6 +475,8 @@ _nvme () { -o':alias for --output-format' --human-readable':show infos in readable format' -H':alias of --human-readable' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme primary-ctrl-caps options" _primary_ctrl_caps @@ -493,6 +507,8 @@ _nvme () { -o':alias for --output-format' --raw-binary':dump infos in binary format' -b':alias of --raw-binary' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme ns-descs options" _ns_descs @@ -519,6 +535,8 @@ _nvme () { -b':alias of --raw-binary' --human-readable':show infos in readable format' -H':alias of --human-readable' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme id-uuid options" _id_uuid @@ -679,6 +697,8 @@ _nvme () { -l':alias of --log-len' --raw-binary':dump infos in binary format' -b':alias of --raw-binary' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme persistent-event-log options" _persistenteventlog @@ -699,6 +719,8 @@ _nvme () { -d':alias of --data-area' --rae':Retain an Asynchronous Event' -r':alias to --rae' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme telemetry-log options" _telemetry_log @@ -725,6 +747,8 @@ _nvme () { -i':alias to --nvmset-id' --raw-binary':dump infos in binary format' -b':alias of --raw-binary' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme predictable-lat-log options" _predictablelatlog @@ -747,6 +771,8 @@ _nvme () { -o':alias for --output-format' --raw-binary':dump infos in binary format' -b':alias of --raw-binary' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme changed-ns-list-log options" _changed_ns_list_log @@ -759,6 +785,8 @@ _nvme () { -n':alias to --namespace-id' --raw-binary':dump infos in binary format' -b':alias to --raw-binary' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme smart-log options" _smartlog @@ -839,6 +867,8 @@ _nvme () { -r':alias to --rae' --raw-binary':dump infos in binary format' -b':alias of --raw-binary' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme endurance-event-agg-log options" _enduranceeventagglog @@ -869,6 +899,8 @@ _nvme () { -s':alias to --lsp' --output-file=':boot partition data output write' -f':alias for --output-file' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme boot-part-log options" _bootpartlog @@ -890,6 +922,8 @@ _nvme () { --cdw11=':dword 11 value, used for interrupt vector configuration only' --raw-binary':dump infos in binary format' -b':alias to --raw-binary' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme get-feature options" _getf @@ -904,6 +938,8 @@ _nvme () { -s':alias for --self-test-code' --wait':Wait for the test to finish' -w':alias to --wait' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme device-self-test options" _device_self_test @@ -918,6 +954,8 @@ _nvme () { -o':alias for --output-format' --verbose':show infos verbosely' -v':alias of --verbose' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme self-test-log options" _self_test_log @@ -936,6 +974,8 @@ _nvme () { -s':alias of --scp' --uuid=':UUID Index field required aligned with Scope' -U':alias of --uuid' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme lockdown options" _lockdown @@ -980,6 +1020,8 @@ _nvme () { -O':alias to --offset' --human-readable':show infos in readable format' -H':alias of --human-readable' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme get-property options" _get_property @@ -1028,6 +1070,8 @@ _nvme () { -x':alias of --xfer' --offset=':starting offset, in dwords (defaults to 0, only useful if download is split across multiple files)' -O':alias of --offset' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme fw-download options" _fwd @@ -1044,6 +1088,8 @@ _nvme () { -l':alias of --cap-lower' --cap-upper=':Most significant 32 bits of the capacity in bytes' -u':alias of --cap-upper' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme capacity-mgmt options" _fwd @@ -1128,6 +1174,8 @@ _nvme () { -S':alias of --storage-tag' --storage-tag-check':Storage Tag field shall be checked as part of end-to-end data protection processing' -C':alias of --storage-tag-check' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme verify options" _verify @@ -1148,6 +1196,8 @@ _nvme () { -a':alias of --sanact' --ovrpat=':Overwrite pattern' -p':alias of --ovrpat' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme sanitize options" _sanitize @@ -1164,6 +1214,8 @@ _nvme () { -H':alias of --human-readable' --raw-binary':dump infos in binary format' -b':alias of --raw-binary' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme sanitize-log options" _sanitize_log @@ -1198,6 +1250,8 @@ _nvme () { /dev/nvme':supply a device to use (required)' --human-readable':show infos in readable format' -H':alias of --human-readable' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme supported-log-pages options" _support @@ -1909,6 +1963,8 @@ _nvme () { (show-hostnqn) local _show_hostnqn _show_hostnqn=( + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme show-hostnqn options" _show_hostnqn @@ -1933,6 +1989,8 @@ _nvme () { -r':alias of --req-resource' --human-readable':show infos in readable format' -H':alias of --human-readable' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme dir-receive options" _dir_receive @@ -2014,6 +2072,8 @@ _nvme () { -v':alias of --verbose' --ranking=':Ranking order: namespace|ctrl' -r':alias for --ranking' + --latency':latency statistics will be output following IOCTL' + -L':alias of --latency' ) _arguments '*:: :->subcmds' _describe -t commands "nvme show-topology options" _showtopology