author | Florian Forster <octo@collectd.org> | |
Sun, 18 Mar 2012 10:27:03 +0000 (11:27 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 18 Mar 2012 10:27:03 +0000 (11:27 +0100) | ||
commit | 7d5dc149bbc2524aff485fbabbe954cb07ab0584 | |
tree | b243a791aaf6e290d6c8d9a239268492f32471db | tree | snapshot |
parent | b08f4f6e917b5359701055b60475a8da1ebfa710 | commit | diff |
nfs plugin: Remove duplicated code.
Changes include:
* Calculate nfs[234]_procedures_names_num at compile time.
* Made nfs_procedures_submit() more versatile, so it can be used from the Linux
and the Solaris code.
* Switched to plugin_dispatch_values_secure(), since the code is using the same
value_list_t for multiple values.
* Broke out nfs_submit_fields() from the Linux code. This removed quite a bit
of code duplication between the v2/v3 code.
* Broke out nfs_read_kstat() which does the get_kstat_value() call in a loop
rather than duplicating all the NFS procedure names.
Changes include:
* Calculate nfs[234]_procedures_names_num at compile time.
* Made nfs_procedures_submit() more versatile, so it can be used from the Linux
and the Solaris code.
* Switched to plugin_dispatch_values_secure(), since the code is using the same
value_list_t for multiple values.
* Broke out nfs_submit_fields() from the Linux code. This removed quite a bit
of code duplication between the v2/v3 code.
* Broke out nfs_read_kstat() which does the get_kstat_value() call in a loop
rather than duplicating all the NFS procedure names.
src/nfs.c | diff | blob | history |