nfs4 index access violation in data-collect-mode
Brought to you by:
fyodor
When starting nmon in data collect mode (-f switch) on rhel8 linux (and probably other distributions) the nfs4 proc returns more fields than nmon can handle.
cat /proc/net/rpc/nfs
...
proc4 67 ....
#define NFS_V4C_NAMES_COUNT 60
So there is an access violation when nmon tries to read field #61
Here's a quick fix that takes care of the problem.
diff lmon16n.c lmon16n_patched.c >lmon16n_patched.c.diff
1945a1946,1948
> if (nfs_v4c_names_count > NFS_V4C_NAMES_COUNT) {
> nfs_v4c_names_count = NFS_V4C_NAMES_COUNT;
> }
In a further step NFS_V4C_NAMES_COUNT and nfs_v4c_names could be updated.
Sorry, wrong project. Had a typo. Consider this as a brain bug.