Skip to contentSkip to conversation

Documentation: use includes in more ndctl command pages.

PATCH New Michal Suchanek 1 participant 1 message Jul 14, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: use includes in more ndctl command pages.

While backporting commit 498ee3d100c3 ("Documentation: clarify bus/dimm/region filtering") I noticed not all instances of --bus, --dimm, and --region use the
include and hence do not get the clarification.

Fixes 498ee3d100c3 ("Documentation: clarify bus/dimm/region filtering")
---
 Documentation/ndctl/labels-options.txt     |  7 ++-----
 Documentation/ndctl/ndctl-inject-smart.txt |  4 +---
 Documentation/ndctl/ndctl-monitor.txt      | 11 +++--------
 3 files changed, 6 insertions(+), 16 deletions(-)
Documentation/ndctl/labels-options.txt +2 -5
index 4aee37969fd5..c7649cfd2aab 100644
@@ -1,9 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 
 <memory device(s)>::
-	One or more 'nmemX' device names. The keyword 'all' can be specified to
-	operate on every dimm in the system, optionally filtered by bus id (see
-        --bus= option).
+include::xable-dimm-options.txt[]
 
 -s::
 --size=::
@@ -16,8 +14,7 @@
 
 -b::
 --bus=::
-	Limit operation to memory devices (dimms) that are on the given bus.
-	Where 'bus' can be a provider name or a bus id number.
+include::xable-bus-options.txt[]
 
 -v::
 	Turn on verbose debug messages in the library (if ndctl was built with
Documentation/ndctl/ndctl-inject-smart.txt +1 -3
index d28be46cae1c..9fd63bae2729 100644
@@ -38,9 +38,7 @@ OPTIONS
 -------
 -b::
 --bus=::
-	Enforce that the operation only be carried on devices that are
-	attached to the given bus. Where 'bus' can be a provider name or a bus
-	id number.
+include::xable-bus-options.txt[]
 
 -m::
 --media-temperature=::
Documentation/ndctl/ndctl-monitor.txt +3 -8
index 2239f047266d..c0273d378b59 100644
@@ -49,20 +49,15 @@ OPTIONS
 -------
 -b::
 --bus=::
-	Enforce that the operation only be carried on devices that are
-	attached to the given bus. Where 'bus' can be a provider name
-	or a bus id number.
+include::xable-bus-options.txt[]
 
 -d::
 --dimm=::
-	A 'nmemX' device name, or dimm id number. Select the devices to
-	monitor reference the given dimm.
+include::xable-dimm-options.txt[]
 
 -r::
 --region=::
-	A 'regionX' device name, or a region id number. The keyword 'all'
-	can be specified to carry out the operation on every region in
-	the system, optionally filtered by bus id (see --bus= option).
+include::xable-region-options.txt[]
 
 -n::
 --namespace=::
Signature · 4 lines
2.26.2
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]