Add support for specifying UID/GID
[fio.git] / options.c
index 16908a07710a5e525ba666aa82fa4235c3f6c3c0..f62806289ebc3acdfb90b56bbcebb0fec7056309 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1740,6 +1740,18 @@ static struct fio_option options[] = {
                .minval = 100,
                .maxval = 1000,
        },
                .minval = 100,
                .maxval = 1000,
        },
+       {
+               .name   = "uid",
+               .type   = FIO_OPT_INT,
+               .off1   = td_var_offset(uid),
+               .help   = "Run job with this user ID",
+       },
+       {
+               .name   = "gid",
+               .type   = FIO_OPT_INT,
+               .off1   = td_var_offset(gid),
+               .help   = "Run job with this group ID",
+       },
        {
                .name = NULL,
        },
        {
                .name = NULL,
        },