Linux-NVDIMM Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [ndctl PATCH 0/8] add an inject-error command to ndctl
@ 2017-10-06  1:53 Vishal Verma
  2017-10-06  1:53 ` [ndctl PATCH 1/8] libndctl: fix a memory leak in add_bus Vishal Verma
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Vishal Verma @ 2017-10-06  1:53 UTC (permalink / raw)
  To: linux-nvdimm

These patches add a new command to ndctl for error injection. They are
implemented such that the interface provided to a user is consistent
with the kernel - i.e. all media errors are expected/displayed in terms
of 512 byte sectors. The underlying ACPI DSMs need and provide byte
relative offsets/lengths, but these are converted to 512B sectors for
consistency.

These also update unit tests to use the new error injection commands,
and add two new unit tests - first, to test the error injection commands
themselves, and second, to test BTT error clearing.

Vishal Verma (8):
  libndctl: fix a memory leak in add_bus
  ndctl, list: move the --human description to an include
  libndctl: add APIs to get scrub count and to wait for a scrub
  ccan/list: add a list_add_after helper
  ndctl: add an inject-error command
  ndctl/test: add a new unit test for inject-error
  ndctl/test: update existing unit tests to use error-inject
  ndctl/test: add a new unit test for BTT error clearing

 Documentation/ndctl/Makefile.am            |   1 +
 Documentation/ndctl/human-option.txt       |   5 +
 Documentation/ndctl/ndctl-inject-error.txt | 108 +++++
 Documentation/ndctl/ndctl-list.txt         |   8 +-
 Documentation/ndctl/ndctl.txt              |   1 +
 builtin.h                                  |   1 +
 ccan/list/list.h                           |  32 ++
 contrib/ndctl                              |   5 +-
 ndctl/Makefile.am                          |   3 +-
 ndctl/inject-error.c                       | 745 +++++++++++++++++++++++++++++
 ndctl/lib/libndctl.c                       |  86 ++++
 ndctl/lib/libndctl.sym                     |   2 +
 ndctl/lib/private.h                        |   1 +
 ndctl/libndctl-nfit.h                      |   8 +
 ndctl/libndctl.h.in                        |   2 +
 ndctl/ndctl.c                              |   1 +
 test/Makefile.am                           |   4 +-
 test/btt-errors.sh                         | 152 ++++++
 test/clear.sh                              |   5 +-
 test/dax-errors.sh                         |   5 +-
 test/daxdev-errors.sh                      |  17 +-
 test/inject-error.sh                       |  89 ++++
 util/json.c                                |  26 +
 util/json.h                                |   3 +
 util/size.h                                |   1 +
 25 files changed, 1297 insertions(+), 14 deletions(-)
 create mode 100644 Documentation/ndctl/human-option.txt
 create mode 100644 Documentation/ndctl/ndctl-inject-error.txt
 create mode 100644 ndctl/inject-error.c
 create mode 100755 test/btt-errors.sh
 create mode 100755 test/inject-error.sh

-- 
2.9.5

_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-10-09 23:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-06  1:53 [ndctl PATCH 0/8] add an inject-error command to ndctl Vishal Verma
2017-10-06  1:53 ` [ndctl PATCH 1/8] libndctl: fix a memory leak in add_bus Vishal Verma
2017-10-07 15:44   ` Dan Williams
2017-10-06  1:53 ` [ndctl PATCH 2/8] ndctl, list: move the --human description to an include Vishal Verma
2017-10-07 15:55   ` Dan Williams
2017-10-06  1:54 ` [ndctl PATCH 3/8] libndctl: add APIs to get scrub count and to wait for a scrub Vishal Verma
2017-10-07 16:11   ` Dan Williams
2017-10-06  1:54 ` [ndctl PATCH 4/8] ccan/list: add a list_add_after helper Vishal Verma
2017-10-06 17:39   ` Dan Williams
2017-10-06  1:54 ` [ndctl PATCH 5/8] ndctl: add an inject-error command Vishal Verma
2017-10-09 16:27   ` Dan Williams
2017-10-06  1:54 ` [ndctl PATCH 6/8] ndctl/test: add a new unit test for inject-error Vishal Verma
2017-10-09 23:49   ` Verma, Vishal L
2017-10-06  1:54 ` [ndctl PATCH 7/8] ndctl/test: update existing unit tests to use error-inject Vishal Verma
2017-10-06  1:54 ` [ndctl PATCH 8/8] ndctl/test: add a new unit test for BTT error clearing Vishal Verma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox