mirror of
https://github.com/gluster/glusterfs.git
synced 2026-02-06 18:48:16 +01:00
As a continuation to #3130 , there are several .h files that are included in various files. However, many of the definitions in those include files should be local to specific files, or is simply dead code. We can easily clean them up. Note - there are some functions that were deemed useful as common or utilities that were meant to be shared across the codebase. After 10 or so years, I think it's OK to move some of them that were never shared across the code, to their own users (and make them static while at it). This commit specifically cleaned up glusterd-utils.c Updates: #3137 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
670 B
670 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 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.