[Gluster-devel] Working script for adding custom GlusterFS translators

Justin Clift jclift at redhat.com
Sun Jun 16 00:03:16 UTC 2013


Hi Jeff,

Whipped up a script today to persistently add a custom translator to
GlusterFS volumes:

  https://github.com/justinclift/glusterflow/blob/master/filter/glusterflowfilter.sh

It uses GlusterFS's "filter" functionality for on-the-fly adjusting .vol
files whenever they're generated:

  http://www.gluster.org/community/documentation/index.php/Glusterfs-filter

My implementation is reasonably specific to adding a new "glusterflowclient"
translator, but it wouldn't be hard for anyone else to copy and make it
work with their own custom translators.

  eg. A translator to ignore requests for ._* files on OSX, or whatever :)

Sure, it's not the greatest approach... (I'm not an elegant coder :>)
but this + Glupy should give people a real world way to rapidly prototype
their own translators to add custom functionality _now_.

No need to code stuff in C, or wait for a future _nice and pretty_ way to
add custom translators. (!)

Any thoughts? :)

Regards and best wishes,

Justin Clift

--
Open Source and Standards @ Red Hat

twitter.com/realjustinclift





More information about the Gluster-devel mailing list