projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change iolog overlap assert to a debug dump
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 8fb93ca7a0c2c6a331a75e5250c86f0d9e37e156..c3fdb56314a5007c00bab2bdee57817816c9e9ee 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-698,6
+698,14
@@
static int str_verify_pattern_cb(void *data, const char *input)
memcpy(&td->o.verify_pattern[i], &td->o.verify_pattern[0], i);
i *= 2;
}
memcpy(&td->o.verify_pattern[i], &td->o.verify_pattern[0], i);
i *= 2;
}
+ if (i == 1) {
+ /*
+ * The code in verify_io_u_pattern assumes a single byte pattern
+ * fills the whole verify pattern buffer.
+ */
+ memset(td->o.verify_pattern, td->o.verify_pattern[0],
+ MAX_PATTERN_SIZE);
+ }
td->o.verify_pattern_bytes = i;
td->o.verify_pattern_bytes = i;