@@ -22,6 +22,11 @@ include::xable-namespace-options.txt[]
Specifying --force causes the namespace to be disabled before
the operation is attempted.
+-v::
+--verbose::
+ Emit debug messages for the namespace destruction operation
+
+
SEE ALSO
--------
linkndctl:ndctl-create-namespace[1]
@@ -6,3 +6,7 @@ the operation on every namespace in the system, optionally filtered by region
-r::
--region=::
include::xable-region-options.txt[]
+
+-v::
+--verbose::
+ Emit debug messages for the namespace operation
@@ -71,7 +71,8 @@ struct parsed_parameters {
OPT_STRING('b', "bus", ¶m.bus, "bus-id", \
"limit namespace to a bus with an id or provider of <bus-id>"), \
OPT_STRING('r', "region", ¶m.region, "region-id", \
- "limit namespace to a region with an id or name of <region-id>")
+ "limit namespace to a region with an id or name of <region-id>"), \
+OPT_BOOLEAN('v', "verbose", &verbose, "emit extra debug messages to stderr")
#define CREATE_OPTIONS() \
OPT_STRING('e', "reconfig", ¶m.reconfig, "reconfig namespace", \
@@ -90,8 +91,7 @@ OPT_STRING('l', "sector-size", ¶m.sector_size, "lba-size", \
"specify the logical sector size in bytes"), \
OPT_STRING('t', "type", ¶m.type, "type", \
"specify the type of namespace to create 'pmem' or 'blk'"), \
-OPT_BOOLEAN('f', "force", &force, "reconfigure namespace even if currently active"), \
-OPT_BOOLEAN('v', "verbose", &verbose, "emit extra debug messages to stderr")
+OPT_BOOLEAN('f', "force", &force, "reconfigure namespace even if currently active")
static const struct option base_options[] = {
BASE_OPTIONS(),
Rather than limiting the -v option to create-namespace, enable it for all xaction-namespace commands i.e. {enable, disable, create, destroy}-namespace. Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- Documentation/ndctl-destroy-namespace.txt | 5 +++++ Documentation/xable-namespace-options.txt | 4 ++++ builtin-xaction-namespace.c | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-)