mirror of
https://github.com/gluster/glusterfs.git
synced 2026-02-06 09:48:44 +01:00
The developer oriented information is scattered in source and its very difficult to identify which are those. With this patch subdirs are created under developer-guide which will be the parent for developer notes. The changes suggested in http://review.gluster.org/#/c/8827/ are also included in this patch. Change-Id: I4c8510d52c49f4066225f72cac8f97f087d6c70c BUG: 1206539 Signed-off-by: Humble Devassy Chirammal <hchiramm@redhat.com> Reviewed-on: http://review.gluster.org/10038 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Lalatendu Mohanty <lmohanty@redhat.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
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.