diff options
| author | Amar Tumballi <amarts@redhat.com> | 2018-10-17 23:03:04 +0530 |
|---|---|---|
| committer | Amar Tumballi <amarts@redhat.com> | 2018-11-02 06:24:47 +0000 |
| commit | c2a543ec947ac56f882a9c0a890f49c63dedeaff (patch) | |
| tree | a4c42a711699ca7591d4cea0c3bcc6926ed98f17 /libglusterfs/src/xlator.h | |
| parent | 55a6ba56bea9ec0d3316c005300c514ea3ab0e54 (diff) | |
xlator: add generic option parsing framework
As an example, and also as an enhancement, added 'log-level'
as a default option to every translator (glusterfs already
support infrastructure to handle xl->loglevel).
Corresponding infrastructure to add per xlator log-level
is not present in glusterd volume-set. Plan is to get it
sorted out in later patches or in GD2.
* Why this is needed? - Mainly because we need to only add
different log-level to some xlator to debug few things in a
production system, while not changing overall log-level. This
helps in better debug-ability.
Updates: bz#1193929
Change-Id: Ia4098ce39197cd423345b3d31fe8315481681ab8
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/xlator.h')
| -rw-r--r-- | libglusterfs/src/xlator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/xlator.h b/libglusterfs/src/xlator.h index 9bdbd7f0e26..64a61ac0bed 100644 --- a/libglusterfs/src/xlator.h +++ b/libglusterfs/src/xlator.h @@ -1078,4 +1078,8 @@ xlator_memrec_free(xlator_t *xl); void xlator_mem_cleanup(xlator_t *this); + +void +handle_default_options(xlator_t *xl, dict_t *options); + #endif /* _XLATOR_H */ |
