[Gluster-users] Writing a GlusterFS Translator - Any Documentation about this?
jdarcy at redhat.com
Mon Dec 20 14:58:07 UTC 2010
On 12/18/2010 06:20 PM, Erik Muttersbach wrote:
> I would like to write a custom GlusterFS Translator for file
> encryption with AES. Besides this rather rare description:
> is there any other documentation on writing a custom Translator?
I don't know of anything official (wish I did) but here are some notes I
wrote up a while ago when I started writing translators myself. Beware:
while it looks like most of this is still applicable, this was written
pre-3.0 so some of the details might have changed. Updates and
additions are certainly most welcome. In particular, I need to add some
stuff about iobrefs and inode-number translations, which seem to affect
almost all translators, and on how to modify your builds for easy
Other than that, learning to write a translator is mostly a matter of
looking at some of the simpler current ones and following their example.
Stay away from AFR and DHT; the basics are obscured in those by lots
of domain-specific complexity. Many of the deprecated translators, such
as map/filter/path-convertor, have actually been among the most useful
as learning tools. You might also find some of my own CloudFS
translators useful as examples or sources of ideas. Good luck, and
welcome to the club.
More information about the Gluster-users