aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-17 07:46:25 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-20 12:48:42 +0300
commit2e3553617c5717e4e223e50b7ed870d1280fd347 (patch)
tree5c3a6d4991fdda46916d013f3c8f965fa494a11d
parentbd12366f3a3dee2b673fd831eec72e2b2969e629 (diff)
fs-tests: integck: verify truncation only if -v option was given
Currently we always verify holes when truncating, but we have -v switch for this and should do this only if -v was given. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--tests/fs-tests/integrity/integck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 84e3bef..2140a1b 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -1082,7 +1082,8 @@ static void file_truncate_info(struct file_info *file, int fd,
w->random_seed = MAX_RANDOM_SEED + 1;
file->raw_writes = w;
- if (new_length > file->length)
+ if (args.verify_ops && !args.power_cut_mode &&
+ new_length > file->length)
file_check_hole(file, fd, file->length,
new_length - file->length);