fault-inject: automatically detect the number base for fail-nth write interface