diff options
author | N Balachandran <nbalacha@redhat.com> | 2018-02-02 15:43:47 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-02-27 10:05:57 +0000 |
commit | 745e522c3a04b59c3c5846850fe22f66001d5ba3 (patch) | |
tree | ac76cd6cbca0089e7884a49dcf9a763454ef75b9 /libglusterfs/src/options.h | |
parent | 7c3cc485054e4ede1efb358552135b432fb7047a (diff) |
options: framework for options levels
Framework in order to classify options.
Updates gluster/glusterfs#302
Change-Id: I3dd6ae27bd0eb8e0065ffca75838c801e4f3ac91
Signed-off-by: N Balachandran <nbalacha@redhat.com>
Diffstat (limited to 'libglusterfs/src/options.h')
-rw-r--r-- | libglusterfs/src/options.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libglusterfs/src/options.h b/libglusterfs/src/options.h index da361524031..f741df25a37 100644 --- a/libglusterfs/src/options.h +++ b/libglusterfs/src/options.h @@ -54,6 +54,15 @@ typedef enum { OPT_FLAG_DOC = 1 << 5, /* can be shown in volume set help */ } opt_flags_t; + +typedef enum { + OPT_STATUS_ADVANCED = 0, + OPT_STATUS_BASIC = 1, + OPT_STATUS_EXPERIMENTAL = 2, + OPT_STATUS_DEPRECATED = 3, +} opt_level_t; + + #define ZR_VOLUME_MAX_NUM_KEY 4 #define ZR_OPTION_MAX_ARRAY_SIZE 64 /* The maximum number of releases that an option could be backported to @@ -89,6 +98,7 @@ typedef struct volume_options { * happen */ opt_validate_type_t validate; + opt_level_t level; /* The op-version at which this option was introduced. * This is an array to support options that get backported to supported |