X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=optgroup.c;h=c228ff292c542055459e34d89e06c58731af3e7b;hp=122d24e98bbb80710df3ab3a7a32e7596be71984;hb=27bbef0cb264b7d66a5f93424d6fc6ff973e22a2;hpb=861e3790be5f1e22b16e827b142147e530205441 diff --git a/optgroup.c b/optgroup.c index 122d24e9..c228ff29 100644 --- a/optgroup.c +++ b/optgroup.c @@ -1,6 +1,7 @@ #include #include #include "optgroup.h" +#include "compiler/compiler.h" /* * Option grouping @@ -168,6 +169,10 @@ static const struct opt_group fio_opt_cat_groups[] = { .name = "libhdfs I/O engine", /* libhdfs */ .mask = FIO_OPT_G_HDFS, }, + { + .name = "NBD I/O engine", /* NBD */ + .mask = FIO_OPT_G_NBD, + }, { .name = NULL, }, @@ -201,5 +206,8 @@ const struct opt_group *opt_group_from_mask(uint64_t *mask) const struct opt_group *opt_group_cat_from_mask(uint64_t *mask) { + compiletime_assert(__FIO_OPT_G_NR <= 8 * sizeof(uint64_t), + "__FIO_OPT_G_NR"); + return group_from_mask(fio_opt_cat_groups, mask, FIO_OPT_G_INVALID); }