forked from gluster/glusterfs
-
Notifications
You must be signed in to change notification settings - Fork 1
adding fops
hchiramm edited this page May 19, 2015
·
1 revision
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.