projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement zoned random I/O testing support
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index 6d8aa7a7087bdc67c8e72d0f5a8a4aa9fe22b8ef..8f515923bcf9b25c725c9d9a3e94ed2ecb1711a3 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-280,7
+280,6
@@
static int bdev_size(struct thread_data *td, struct fio_file *f)
r = blockdev_size(f, &bytes);
if (r) {
td_verror(td, r, "blockdev_size");
r = blockdev_size(f, &bytes);
if (r) {
td_verror(td, r, "blockdev_size");
- printf("fd is %d\n", f->fd);
goto err;
}
goto err;
}
@@
-760,6
+759,9
@@
int setup_files(struct thread_data *td)
}
}
}
}
+ if (td->o.size_percent)
+ total_size = (total_size * td->o.size_percent) / 100;
+
if (!td->o.size || td->o.size > total_size)
td->o.size = total_size;
if (!td->o.size || td->o.size > total_size)
td->o.size = total_size;