[Gluster-devel] Proposal for 3.5: Make adding custom translators easy

Justin Clift jclift at redhat.com
Mon Aug 12 19:57:06 UTC 2013


On 12/08/2013, at 8:55 PM, Joe Julian wrote:
<snip>
> Or as json:
> {
>  "translator": {
>    "name": "features/marker",
>    "type": "server",
>    "graph": { "before": "debug/io-stats" },
>    "subvolume": { "count": 1 },
>    "cli": {
>      "target": "volume",
>      "options": {
>        "option": [
>          {
>            "name": "quota",
>            "type": "boolean",
>            "default": false
>          },
>          {
>            "name": "xtime",
>            "type": "boolean",
>            "default": false
>          },
>          {
>            "name": "timestamp-file",
>            "type": "string",
>            "default": "/var/lib/glusterd/vols/${vol}/marker.tstamp"
>          }
>        ]
>      }
>    }
>  }
> }

The JSON does seem a lot more readable.

+ Justin

--
Open Source and Standards @ Red Hat

twitter.com/realjustinclift





More information about the Gluster-devel mailing list