]> git.baikalelectronics.ru Git - kernel.git/commit
UBIFS: improve power cut emulation testing
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 3 Jun 2011 13:20:03 +0000 (16:20 +0300)
committerArtem Bityutskiy <dedekind1@gmail.com>
Mon, 4 Jul 2011 07:54:34 +0000 (10:54 +0300)
commit4ba17aeb6eeb5d392e0d8e6aeb3115e5951dc50c
treee745f630a78b473379e9d0866a9b1be25b528677
parent638a0cb81f5781553f5a005a979540f76fbd84f0
UBIFS: improve power cut emulation testing

This patch cleans-up and improves the power cut testing:

1. Kill custom 'simple_random()' function and use 'random32()' instead.
2. Make timeout larger
3. When cutting the buffer - fill the end with random data sometimes, not
   only with 0xFFs.
4. Some times cut in the middle of the buffer, not always at the end.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/debug.c