ndctl, documentation: fix the manpage of inject-smart
Subsystems (2)
PATCH 1/1 ndctl, documentation: fix the manpage of inject-smart
The ndctl inject-smart doesn't have a [-H | --health] option. This patch replaces [-H | --health] in the manpage of inject-smart with [-f | --fatal].
--- Documentation/ndctl/ndctl-inject-smart.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
Documentation/ndctl/ndctl-inject-smart.txt +7 -5
@@ -50,6 +50,7 @@ OPTIONS --media-temperature-threshold=:: Set <value> for the smart media temperature threshold. +-x:: --media-temperature-alarm=:: Enable or disable the smart media temperature alarm. Options are 'on' or 'off'.
@@ -62,6 +63,7 @@ OPTIONS --ctrl-temperature-threshold=:: Set <value> for the smart controller temperature threshold. +-y:: --ctrl-temperature-alarm=:: Enable or disable the smart controller temperature alarm. Options are 'on' or 'off'.
@@ -74,16 +76,16 @@ OPTIONS --spares-threshold=:: Set <value> for the smart spares threshold. +-z:: --spares-alarm=:: Enable or disable the smart spares alarm. Options are 'on' or 'off'. --H:: ---health=:: - Smart attribute for health status. Provide either 'fatal' or 'nominal' - to set the state of the attribute. +-f:: +--fatal:: + Inject fatal for the health state attribute. -U:: ---unsafe-shutdown=:: +--unsafe-shutdown:: Set the flag to spoof an unsafe shutdown on the next power down. -v::
Signature · 7 lines
2.18.0 _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
Verma, Vishal L
maintainerQuoted 39 lines · QI Fuli
The ndctl inject-smart doesn't have a [-H | --health] option. This patch replaces [-H | --health] in the manpage of inject-smart with [-f | --fatal].
Signed-off-by QI Fuli <[email protected]>--- Documentation/ndctl/ndctl-inject-smart.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)Documentation/ndctl/ndctl-inject-smart.txt +1
-0@@ -50,6 +50,7 @@ OPTIONS --media-temperature-threshold=:: Set <value> for the smart media temperature threshold. +-x:: --media-temperature-alarm=:: Enable or disable the smart media temperature alarm. Optionsare
Documentation/ndctl/ndctl-inject-smart.txt +1
-0'on' or 'off'.@@ -62,6 +63,7 @@ OPTIONS --ctrl-temperature-threshold=:: Set <value> for the smart controller temperature threshold. +-y:: --ctrl-temperature-alarm=:: Enable or disable the smart controller temperature alarm.Options are
Documentation/ndctl/ndctl-inject-smart.txt +1
-0'on' or 'off'.@@ -74,16 +76,16 @@ OPTIONS --spares-threshold=:: Set <value> for the smart spares threshold. +-z:: --spares-alarm=:: Enable or disable the smart spares alarm. Options are 'on'
Quoted 1 line
or 'off'.
Hi Qi,
For the x, y, and z short options, I left them undocumented since they don't exactly match the actual field being set.
Documentation/ndctl/ndctl-inject-smart.txt OPTIONS · line 83
Quoted 6 lines
--H::
---health=::Documentation/ndctl/ndctl-inject-smart.txt +0
-1- Smart attribute for health status. Provide either 'fatal' or'nominal'
Documentation/ndctl/ndctl-inject-smart.txt +0
-1- to set the state of the attribute.
This was a leftover from a previous iteration, and does need to be fixed. However, I am reworking this man page along with the smart injection utility to also provide a way to 'uninject' or disable injected values, and go back to reporting actual current status. I have this fix in that series.
Quoted 11 lines
+-f:: +--fatal::Documentation/ndctl/ndctl-inject-smart.txt +2
-1+ Inject fatal for the health state attribute. -U:: ---unsafe-shutdown=:: +--unsafe-shutdown:: Set the flag to spoof an unsafe shutdown on the next powerdown.
-v::
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm