From a105b25915a2b9c900957c71443e0be2ef5fa9ec Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 27 Jul 2018 23:11:51 +0530 Subject: classification: provide infra to start labelling features/components `doc/xlator-classification.md` talks about the reasoning and expectations Reviewers are expected to check the 'category' of new option / translator added in the codebase, and make sure the flag is always properly set. It helps to keep the 'expectation' proper on the codebase. updates: #430 Change-Id: I2bfc9934a5f6eed77fcc3e20364046242decc82c Signed-off-by: Amar Tumballi --- extras/create_new_xlator/new-xlator-tmpl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/create_new_xlator/new-xlator-tmpl.c b/extras/create_new_xlator/new-xlator-tmpl.c index 1f2f9c316a2..474144c1c81 100644 --- a/extras/create_new_xlator/new-xlator-tmpl.c +++ b/extras/create_new_xlator/new-xlator-tmpl.c @@ -96,7 +96,8 @@ struct volume_options @FOP_PREFIX@_options[] = { .op_version = {GD_OP_VERSION_}, .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC | OPT_FLAG_CLIENT_OPT, .tags = {""}, - .description = "" + .description = "", + .category = GF_EXPERIMENTAL, }, { .key = {NULL} }, */ @@ -115,6 +116,7 @@ xlator_api_t xlator_api = { .cbks = &@FOP_PREFIX@_cbks, .options = @FOP_PREFIX@_options, .identifier = "@XL_NAME@", + .category = GF_EXPERIMENTAL, }; #pragma fragment HEADER_FMT #ifndef __@HFL_NAME@_H__ -- cgit