diff options
author | Amar Tumballi <amarts@redhat.com> | 2018-07-27 23:11:51 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-09-04 09:15:49 +0000 |
commit | a105b25915a2b9c900957c71443e0be2ef5fa9ec (patch) | |
tree | 78861ad2ca826c2bef34c1e5e875d8ae68da52e5 /extras | |
parent | 53e6e621408bca1e053caa2f93af84788edb2dfa (diff) |
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 <amarts@redhat.com>
Diffstat (limited to 'extras')
-rw-r--r-- | extras/create_new_xlator/new-xlator-tmpl.c | 4 |
1 files changed, 3 insertions, 1 deletions
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__ |