linux-stable/Documentation/fault-injection
Akinobu Mita bfc740938d fault-inject: make fail-nth read/write interface symmetric
The read interface for fail-nth looks a bit odd.  Read from this file
returns "NYYYY..." or "YYYYY..." (this makes me surprise when cat this
file).  Because there is no EOF condition.  The first character
indicates current->fail_nth is zero or not, and then current->fail_nth
is reset to zero.

Just returning task->fail_nth value is more natural to understand.

Link: http://lkml.kernel.org/r/1491490561-10485-4-git-send-email-akinobu.mita@gmail.com
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-07-14 15:05:13 -07:00
..
fault-injection.txt fault-inject: make fail-nth read/write interface symmetric 2017-07-14 15:05:13 -07:00
notifier-error-inject.txt net: Add support for CHANGEUPPER notifier error injection 2015-12-03 11:49:23 -05:00
provoke-crashes.txt lkdtm: add debugfs access and loosen KPROBE ties 2010-03-06 11:26:32 -08:00