Linux-NVDIMM Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [ndctl PATCH 0/4] Error injection reworks
@ 2018-05-01 18:00 Vishal Verma
  2018-05-01 18:00 ` [ndctl PATCH 1/4] libndctl, ars: add an API to retrieve clear_err_unit Vishal Verma
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Vishal Verma @ 2018-05-01 18:00 UTC (permalink / raw)
  To: linux-nvdimm

Updates to the error injection facilities in libndctl and ndctl that:
1. Inject fewer bytes per injected block:
  It is sufficient to inject even a single byte (cache line) for Linux
  to mark the entire block as a badblock. Reduce the number of injected
  bytes per block to the unit reported by clear_err_unit

2. Provide a --saturate option:
  If the old behavior of injecting the whole block for every block is
  desired, provide a --saturate option to get that.


Vishal Verma (4):
  libndctl, ars: add an API to retrieve clear_err_unit
  libndctl, inject: inject fewer bytes per block by default
  libndctl, inject: add 'v2' APIs for inject and uninject
  ndctl, inject-error: add a --saturate option

 Documentation/ndctl/ndctl-inject-error.txt |  14 ++
 ndctl/inject-error.c                       |  40 +++---
 ndctl/lib/ars.c                            |  15 +++
 ndctl/lib/inject.c                         | 201 ++++++++++++++++++++++-------
 ndctl/lib/libndctl.sym                     |   7 +
 ndctl/libndctl.h                           |  11 ++
 6 files changed, 222 insertions(+), 66 deletions(-)

-- 
2.14.3

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

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

end of thread, other threads:[~2018-05-01 19:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-01 18:00 [ndctl PATCH 0/4] Error injection reworks Vishal Verma
2018-05-01 18:00 ` [ndctl PATCH 1/4] libndctl, ars: add an API to retrieve clear_err_unit Vishal Verma
2018-05-01 18:00 ` [ndctl PATCH 2/4] libndctl, inject: inject fewer bytes per block by default Vishal Verma
2018-05-01 18:00 ` [ndctl PATCH 3/4] libndctl, inject: add 'v2' APIs for inject and uninject Vishal Verma
2018-05-01 18:00 ` [ndctl PATCH 4/4] ndctl, inject-error: add a --saturate option Vishal Verma
2018-05-01 19:54 ` [ndctl PATCH 0/4] Error injection reworks Dave Jiang

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