Don't truncate files if we don't need to extend them
[fio.git] / options.c
index 055fbab7a14180a91062635a4176a9603b0fd8d2..36f80fce61a7f6fe24dda2c474580bc3b74bb4bf 100644 (file)
--- a/options.c
+++ b/options.c
@@ -534,6 +534,13 @@ static struct fio_option options[] = {
                .minval = 1,
                .help   = "Total size of device or files",
        },
+       {
+               .name   = "fill_device",
+               .type   = FIO_OPT_BOOL,
+               .off1   = td_var_offset(fill_device),
+               .help   = "Write until an ENOSPC error occurs",
+               .def    = "0",
+       },
        {
                .name   = "filesize",
                .type   = FIO_OPT_STR_VAL,