* [PATCH] ndctl: add list -M documentation
@ 2017-05-11 20:18 Dave Jiang
2017-05-11 21:52 ` Kani, Toshimitsu
0 siblings, 1 reply; 2+ messages in thread
From: Dave Jiang @ 2017-05-11 20:18 UTC (permalink / raw)
To: dan.j.williams; +Cc: linux-nvdimm
Adding the list --media-errors option to documentation.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
Documentation/ndctl-list.txt | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/Documentation/ndctl-list.txt b/Documentation/ndctl-list.txt
index 444a6f9..0ac08a8 100644
--- a/Documentation/ndctl-list.txt
+++ b/Documentation/ndctl-list.txt
@@ -146,6 +146,35 @@ include::xable-region-options.txt[]
--idle::
Include idle (not enabled) devices in the listing
+-M::
+--media-errors::
+ Include media errors (badblocks) in the listing. badblocks_count
+ may count blocks that are not in the data space of the namespace
+ for sector mode.
+[verse]
+{
+ "dev":"namespace7.0",
+ "mode":"raw",
+ "size":33554432,
+ "blockdev":"pmem7",
+ "badblock_count":17,
+ "badblocks":[
+ {
+ "offset":4,
+ "length":1
+ },
+ {
+ "offset":32768,
+ "length":8
+ },
+ {
+ "offset":65528,
+ "length":8
+ }
+ ]
+}
+
+
SEE ALSO
--------
linkndctl:ndctl-create-namespace[1]
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ndctl: add list -M documentation
2017-05-11 20:18 [PATCH] ndctl: add list -M documentation Dave Jiang
@ 2017-05-11 21:52 ` Kani, Toshimitsu
0 siblings, 0 replies; 2+ messages in thread
From: Kani, Toshimitsu @ 2017-05-11 21:52 UTC (permalink / raw)
To: dan.j.williams@intel.com, dave.jiang@intel.com; +Cc: linux-nvdimm@lists.01.org
On Thu, 2017-05-11 at 13:18 -0700, Dave Jiang wrote:
> Adding the list --media-errors option to documentation.
>
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
> ---
> Documentation/ndctl-list.txt | 29 +++++++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
>
> diff --git a/Documentation/ndctl-list.txt b/Documentation/ndctl-
> list.txt
> index 444a6f9..0ac08a8 100644
> --- a/Documentation/ndctl-list.txt
> +++ b/Documentation/ndctl-list.txt
> @@ -146,6 +146,35 @@ include::xable-region-options.txt[]
> --idle::
> Include idle (not enabled) devices in the listing
The output under EXAMPLE should have "badblock_count".
> +-M::
> +--media-errors::
> + Include media errors (badblocks) in the listing.
badblock_count does not need -M. So, I think the description below
could be put under NOTE or something.
> badblocks_count
> + may count blocks that are not in the data space of the
> namespace
> + for sector mode.
Thanks,
-Toshi
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-11 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11 20:18 [PATCH] ndctl: add list -M documentation Dave Jiang
2017-05-11 21:52 ` Kani, Toshimitsu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.