[ndctl PATCH v3 2/6] libndctl: add error injection related interfaces