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:
http://europe.gluster.org/community/documentation/index.php/GlusterFS_Contributors_FAQ,
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 debugging etc.

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[1] translators useful as examples or sources of ideas. Good luck, and welcome to the club.

[1] http://git.fedorahosted.org/git/?p=CloudFS.git
_______________________________________________
Gluster-users mailing list
[email protected]
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users

Reply via email to