Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avl doc comp #2729

Merged
merged 2 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions Documentation/nvme-ave-discovery-log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
nvme-ave-discovery-log(1)
=========================

NAME
----
nvme-ave-discovery-log - Retrieve AVE Discovery Log, show it

SYNOPSIS
--------
[verse]
'nvme ave-discovery-log' <device> [--rae | -r] [--verbose | -v]
[--output-format=<fmt> | -o <fmt>] [--timeout=<timeout>]

DESCRIPTION
-----------
Retrieve AVE Discovery Log, show it

The <device> parameter is mandatory NVMe character device (ex: /dev/nvme0).

On success it returns 0, error code otherwise.

OPTIONS
-------
-r::
--rae::
Retain an Asynchronous Event.

-v::
--verbose::
Increase the information detail in the output.

-o <fmt>::
--output-format=<fmt>::
Set the reporting format to 'normal', 'json' or 'binary'. Only one
output format can be used at a time.

-t <timeout>::
--timeout=<timeout>::
Override default timeout value. In milliseconds.

EXAMPLES
--------
* Has the program issue a ave-discovery-log
+
------------
# nvme ave-discovery-log /dev/nvme0
------------

NVME
----
Part of the nvme-user suite.
17 changes: 17 additions & 0 deletions completions/_nvme
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ _nvme () {
'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'
'version:show the program version'
'ocp:OCP cloud SSD extensions'
'solidigm:Solidigm plug-in extensions'
Expand Down Expand Up @@ -2757,6 +2758,22 @@ _nvme () {
_arguments '*:: :->subcmds'
_describe -t commands "nvme host-discovery-log" _hd_log
;;
(ave-discovery-log)
local _ad_log
_ad_log=(
/dev/nvme':supply a device to use (required)'
--rae':Retain an Asynchronous Event'
-r':alias for --rae'
--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 ave-discovery-log" _ad_log
;;
(version)
local _version
_version=(
Expand Down
6 changes: 5 additions & 1 deletion completions/bash-nvme-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,10 @@ nvme_list_opts () {
opts+=" --all-host-entries -a --rae -r --verbose -v \
--output-format= -o --timeout= -t"
;;
"ave-discovery-log")
opts+=" --rae -r --verbose -v --output-format= -o \
--timeout= -t"
;;
"version")
opts+=$NO_OPTS
;;
Expand Down Expand Up @@ -1747,7 +1751,7 @@ _nvme_subcmds () {
rotational-media-info-log changed-alloc-ns-list-log \
io-mgmt-recv io-mgmt-send dispersed-ns-participating-nss-log \
reachability-groups-log reachability-associations-log \
host-discovery-log"
host-discovery-log ave-discovery-log"

# Add plugins:
for plugin in "${!_plugin_subcmds[@]}"; do
Expand Down