Add the file sharing bits
[fio.git] / options.c
index 1119a9806346219958ca512573f9ac4f25ca08d0..27b4fb65eb1b6158763050badd5821db122f089d 100644 (file)
--- a/options.c
+++ b/options.c
@@ -384,6 +384,22 @@ static struct fio_option options[] = {
                .cb     = str_filename_cb,
                .help   = "File(s) to use for the workload",
        },
+       {
+               .name   = "lockfile",
+               .type   = FIO_OPT_BOOL,
+               .off1   = td_var_offset(lockfile),
+               .help   = "Lock file when doing IO to it",
+               .parent = "filename",
+               .def    = "0",
+       },
+       {
+               .name   = "lockfile_batch",
+               .type   = FIO_OPT_INT,
+               .off1   = td_var_offset(lockfile_batch),
+               .help   = "Number of IOs to allow per file lock",
+               .parent = "lockfile",
+               .def    = "1",
+       },
        {
                .name   = "opendir",
                .type   = FIO_OPT_STR_STORE,