Add specific knob for controlling fallocate() usage
[fio.git] / options.c
index 1543eb95c160aa1afd2fae34c402dd3cab0092de..1c07982d41cf23497862289d814b294a6e1edcb8 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1081,6 +1081,15 @@ static struct fio_option options[] = {
                },
                .parent = "nrfiles",
        },
+#ifdef FIO_HAVE_FALLOCATE
+       {
+               .name   = "fallocate",
+               .type   = FIO_OPT_BOOL,
+               .off1   = td_var_offset(fallocate),
+               .help   = "Use fallocate() when laying out files",
+               .def    = "1",
+       },
+#endif
        {
                .name   = "fadvise_hint",
                .type   = FIO_OPT_BOOL,