mirror of
https://github.com/gluster/glusterdocs.git
synced 2026-02-05 15:47:01 +01:00
733 B
733 B
Adding a new FOP
Steps to be followed when adding a new FOP to GlusterFS:
- Edit
glusterfs.hand add aGF_FOP_*constant. - Edit
xlator.[ch]and:- add the new prototype for fop and callback.
- edit
xlator_fopsstructure.
- Edit
xlator.cand add to fill_defaults. - Edit
protocol.hand add struct necessary for the new FOP. - Edit
defaults.[ch]and provide default implementation. - Edit
call-stub.[ch]and provide stub implementation. - Edit
common-utils.cand add to gf_global_variable_init(). - Edit client-protocol and add your FOP.
- Edit server-protocol and add your FOP.
- Implement your FOP in any translator for which the default implementation is not sufficient.