diff options
author | Humble Devassy Chirammal <hchiramm@redhat.com> | 2015-03-30 12:21:05 +0530 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2015-03-30 05:51:12 -0700 |
commit | 8907f67ba215172b01a7018adcbb063fcc4570e9 (patch) | |
tree | 68cf6557990ae4215926068625a7b5e0e1374882 /doc/developer-guide/adding-fops.md | |
parent | e3bd2387a5973df4548fe4a62b5dfc227a2bdc64 (diff) | |
download | glusterfs-8907f67ba215172b01a7018adcbb063fcc4570e9.tar.gz glusterfs-8907f67ba215172b01a7018adcbb063fcc4570e9.tar.xz glusterfs-8907f67ba215172b01a7018adcbb063fcc4570e9.zip |
doc: restructure developer docs to new layout
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>
Diffstat (limited to 'doc/developer-guide/adding-fops.md')
-rw-r--r-- | doc/developer-guide/adding-fops.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/developer-guide/adding-fops.md b/doc/developer-guide/adding-fops.md new file mode 100644 index 0000000000..3f72ed3e23 --- /dev/null +++ b/doc/developer-guide/adding-fops.md @@ -0,0 +1,18 @@ +Adding a new FOP +================ + +Steps to be followed when adding a new FOP to GlusterFS: + +1. Edit `glusterfs.h` and add a `GF_FOP_*` constant. +2. Edit `xlator.[ch]` and: + * add the new prototype for fop and callback. + * edit `xlator_fops` structure. +3. Edit `xlator.c` and add to fill_defaults. +4. Edit `protocol.h` and add struct necessary for the new FOP. +5. Edit `defaults.[ch]` and provide default implementation. +6. Edit `call-stub.[ch]` and provide stub implementation. +7. Edit `common-utils.c` and add to gf_global_variable_init(). +8. Edit client-protocol and add your FOP. +9. Edit server-protocol and add your FOP. +10. Implement your FOP in any translator for which the default implementation + is not sufficient. |