All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Jiang <dave.jiang@intel.com>
To: dan.j.williams@intel.com
Cc: linux-nvdimm@lists.01.org
Subject: [PATCH v6 0/3] ndctl: add error clearing support for dev dax
Date: Thu, 04 May 2017 14:48:56 -0700	[thread overview]
Message-ID: <149393422747.2642.5136375594842641153.stgit@djiang5-desk3.ch.intel.com> (raw)

The following series implements support for error clearing and error
listing for device dax through ndctl.

---

v2: Addressed comments from Vishal
- added bounds checking for the badblocks region.
- updated verbiage to use badblocks instead of poison.
- set default len to 1.
- fixed error out for stat
- fixed error out that was copy/paste error
- remove duplicate check_min_kver() in shell script
- fixed logic of checking empty badblocks

v3: Addressed comments from Toshi
- Fixed bad region path for badblocks

v4: Address comments from Toshi
- Added error output for length that exceeds badblock coverage.

v5: Address comments from Toshi
- Made -l 0 to error out and no length means 1 block cleared.

v6: Address comments from Dan
- Fixed clear-error to be based off of device instead of region.
- Added list-errors command to ndctl

Dave Jiang (3):
      ndctl: add clear-error to ndctl for device dax
      ndctl: add list-errors support
      ndctl: add test for clear-error


 Documentation/ndctl-clear-error.txt |   38 ++++
 Documentation/ndctl-list-errors.txt |   26 +++
 builtin.h                           |    2 
 ndctl/Makefile.am                   |    1 
 ndctl/clear-error.c                 |  352 +++++++++++++++++++++++++++++++++++
 ndctl/lib/libndctl.c                |   72 +++++++
 ndctl/lib/libndctl.sym              |    2 
 ndctl/libndctl.h.in                 |  10 +
 ndctl/ndctl.c                       |   2 +
 test/Makefile.am                    |   1 +
 test/ndctl-clear-error-dax.sh       |  66 +++++++
  11 files changed, 572 insertions(+)
 create mode 100644 Documentation/ndctl-clear-error.txt
 create mode 100644 Documentation/ndctl-list-errors.txt
 create mode 100644 ndctl/clear-error.c
 create mode 100755 test/ndctl-clear-error-dax.sh
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

             reply	other threads:[~2017-05-04 21:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-04 21:48 Dave Jiang [this message]
2017-05-04 21:49 ` [PATCH v6 1/3] ndctl: add clear-error to ndctl for device dax Dave Jiang
2017-05-05 19:14   ` Dan Williams
2017-05-05 19:33     ` Dan Williams
2017-05-05 19:41     ` Linda Knippers
2017-05-05 20:01       ` Dan Williams
2017-05-05 20:23         ` Linda Knippers
2017-05-04 21:49 ` [PATCH v6 2/3] ndctl: add list-errors support Dave Jiang
2017-05-05 17:07   ` Kani, Toshimitsu
2017-05-05 17:14     ` Dave Jiang
2017-05-05 17:21       ` Kani, Toshimitsu
2017-05-05 17:27         ` Dave Jiang
2017-05-05 17:35           ` Kani, Toshimitsu
2017-05-05 17:49             ` Kani, Toshimitsu
2017-05-04 21:49 ` [PATCH v6 3/3] ndctl: add test for clear-error Dave Jiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=149393422747.2642.5136375594842641153.stgit@djiang5-desk3.ch.intel.com \
    --to=dave.jiang@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=linux-nvdimm@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.