projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a35845
)
Error out if the set blocksize is larger than the file size
author
Jens Axboe
<axboe@fb.com>
Wed, 16 Apr 2014 21:51:27 +0000
(23:51 +0200)
committer
Jens Axboe
<axboe@fb.com>
Wed, 16 Apr 2014 21:51:27 +0000
(23:51 +0200)
Signed-off-by: Jens Axboe <axboe@fb.com>
filesetup.c
patch
|
blob
|
blame
|
history
diff --git
a/filesetup.c
b/filesetup.c
index 60e79474d2cba91b465c4aca3c34749096c2fbce..79eea9f879fb42b1f21607e5fe4df1fe4d498cd5 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-885,6
+885,11
@@
int setup_files(struct thread_data *td)
if (!o->size || o->size > total_size)
o->size = total_size;
+ if (o->size < td_min_bs(td)) {
+ log_err("fio: blocksize too large for data set\n");
+ goto err_out;
+ }
+
/*
* See if we need to extend some files
*/