[Gluster-devel] GD 2 xlator option changes

Nithya Balachandran nbalacha at redhat.com
Mon Jan 15 06:44:32 UTC 2018


Hi,

A few questions about this:

1. What (if anything) should be done for options like these which have "!" ?

        /* Switch xlator options (Distribute special case) */

        { .key        = "cluster.switch",

          .voltype    = "cluster/distribute",

          .option     = "!switch",

          .type       = NO_DOC,

          .op_version = 3,

          .flags      = VOLOPT_FLAG_CLIENT_OPT

        },


2. How should the changed key names handled?

In glusterd:

        { .key        = "cluster.switch-pattern",

          .voltype    = "cluster/switch",

          .option     = "pattern.switch.case",

          .type       = NO_DOC,

          .op_version = 3,

          .flags      = VOLOPT_FLAG_CLIENT_OPT

        },


In dht src code:
        /* switch option */

        { .key  = {"pattern.switch.case"},

          .type = GF_OPTION_TYPE_ANY,

          .op_version = {3},

          .flags = OPT_FLAG_CLIENT_OPT,

        },



Regards,
Nithya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20180115/5c479ddd/attachment.html>


More information about the Gluster-devel mailing list