summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-17 06:25:32 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-20 12:48:42 +0300
commitd7c961cf40667b81973f75277ad5a386811c163c (patch)
tree1beb4c2e4f5aab99857f168d661d6d2d695c35f9
parenta38739e69da193eba333b6d671d008d6006d3db5 (diff)
fs-tests: integck: fsync more often
Currently integck calls 'fsync()' very rarely - with 0.1% probability. Make this happen more often - with 1% probability. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--tests/fs-tests/integrity/integck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 221bd49..81d384f 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -1269,7 +1269,7 @@ static int file_write(struct file_info *file, int fd)
}
/* Sync sometimes */
- if (random_no(1000) >= 999) {
+ if (random_no(100) >= 99) {
if (random_no(100) >= 50) {
ret = fsync(fd);
if (ret)