On Thu, Nov 8, 2018 at 1:27 PM Toshi Kani <toshi.k...@hpe.com> wrote: > > ndctl zero-labels completes with a large number of zeroed nmems when > it fails to do zeroing on a protected NVDIMM. > > # ndctl zero-labels nmem1 > zeroed 65504 nmems > > do_cmd() called from ndctl_dimm_zero_labels() sets a transfer size to > rc when FW status is non-zero. This transfer size gets mistreated as > zeroed nmems count in the end. > > Fix ndctl_dimm_zero_labels() to handle this FW error case properly. > > Reported-by: Robert Elliott <elli...@hpe.com> > Signed-off-by: Toshi Kani <toshi.k...@hpe.com> > Cc: Vishal Verma <vishal.l.ve...@intel.com> > Cc: Dan Williams <dan.j.willi...@intel.com>
Looks good, Reviewed-by: Dan Williams <dan.j.willi...@intel.com> _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm