Add an option "cgroup_nodelete" to not delete cgroups after job completion
[fio.git] / options.c
index 974df334a209f2af811496ee7976d82169dd576e..994f2a19567f5818a4223d4690cc8b025f13569f 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1817,6 +1817,13 @@ static struct fio_option options[FIO_MAX_OPTS] = {
                .minval = 100,
                .maxval = 1000,
        },
+       {
+               .name   = "cgroup_nodelete",
+               .type   = FIO_OPT_BOOL,
+               .off1   = td_var_offset(cgroup_nodelete),
+               .help   = "Do not delete cgroups after job completion",
+               .def    = "0",
+       },
        {
                .name   = "uid",
                .type   = FIO_OPT_INT,