Skip to content
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
52 changes: 52 additions & 0 deletions Documentation/nvme-rotational-media-info-log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
nvme-rotational-media-info-log(1)
=================================

NAME
----
nvme-rotational-media-info-log - Retrieve Rotational Media Information Log, show it

SYNOPSIS
--------
[verse]
'nvme rotational-media-info-log' <device> [--endg-id=<endgid> | -e <endgid>]
[--verbose | -v] [--output-format=<fmt> | -o <fmt>]
[--timeout=<timeout>]

DESCRIPTION
-----------
Retrieve Rotational Media Information Log, show it

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

On success it returns 0, error code otherwise.

OPTIONS
-------
-e <endgid>::
--endg-id=<endgid>::
This field specifies the identifier of the endurance group.

-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 rotational-media-info-log
+
------------
# nvme rotational-media-info-log /dev/nvme0 --endg-id=1
------------

NVME
----
Part of the nvme-user suite.
18 changes: 18 additions & 0 deletions completions/_nvme
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ _nvme () {
'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'
Expand Down Expand Up @@ -2627,6 +2628,22 @@ _nvme () {
_arguments '*:: :->subcmds'
_describe -t commands "nvme mgmt-addr-list-log" _mal_log
;;
(rotational-media-info-log)
local _rmi_log
_caplog=(
/dev/nvme':supply a device to use (required)'
--endg-id=':Endurance Group Identifier'
-e':alias of --endg-id'
--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 rotational-media-info-log" _rmi_log
;;
(version)
local _version
_version=(
Expand Down Expand Up @@ -2739,6 +2756,7 @@ _nvme () {
subsystem-reset ns-rescan get-lba-status dsm discover connect-all connect
dim disconnect disconnect-all gen-hostnqn show-hostnqn tls-key dir-receive
dir-send virt-mgmt rpmb version ocp solidigm dapustor mgmt-addr-list-log
rotational-media-info-log
)
_arguments '*:: :->subcmds'
_describe -t commands "help: infos on a specific nvme command, or provide no option to see a synopsis of all nvme commands" _h
Expand Down
7 changes: 6 additions & 1 deletion completions/bash-nvme-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@ nvme_list_opts () {
"mgmt-addr-list-log")
opts+=" --verbose -v --output-format= -o --timeout= -t"
;;
"rotational-media-info-log")
opts+=" --endg-id= -e --verbose -v --output-format= -o \
--timeout= -t"
;;
"version")
opts+=$NO_OPTS
;;
Expand Down Expand Up @@ -1672,7 +1676,8 @@ _nvme_subcmds () {
rpmb boot-part-log fid-support-effects-log \
supported-log-pages lockdown media-unit-stat-log \
supported-cap-config-log dim show-topology list-endgrp \
nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log"
nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log \
rotational-media-info-log"

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