On Mon, 2017-05-01 at 16:33 -0700, Dave Jiang wrote:
+Clear poison (bad blocks) for the provided device
+ndctl clear-error -f /dev/dax0.0 -s 0 -l 8
+Clear poison (bad blocks) at block offset 0 for 8 blocks on device
+ The device/file to be cleared of poison (bad blocks).
+ The offset where the poison (bad block) starts for this
+ Typically this is acquired from the sysfs badblocks file.
+ The number of badblocks to clear in size of 512 bytes
+ length must fit within the badblocks range. If the length
+ badblock range or is 0, the command will fail.
Actually, I am seeing '-l 0' works just like '-l 1'.