Jason Woodward has uploaded this change for review.

View Change

nfs_convert.c: add missing NFS4_OP_LAYOUTSTATS

NFS4_OP_LAYOUTSTATS appears to be the only missing op in nfs_convert.c.

```
*10 ganesha_monitoring::get_labels (labels=labels@entry=0xffffffffe6a0, num_labels=num_labels@entry=2) at /nfs-ganesha/src/monitoring/monitoring.cc:327
*11 0x0000fffff7e506d4 in ganesha_monitoring::monitoring__register_histogram (name=name@entry=0xfffff7d4d9a8 "nfsv4__op_latency", metadata=..., labels=labels@entry=0xffffffffe6a0, num_labels=num_labels@entry=2, buckets=...) at /nfs-ganesha/src/monitoring/monitoring.cc:397
*12 0x0000fffff7c580d8 in register_nfsv4_operation_metrics (statcode_index=<optimized out>, opcode=NFS4_OP_LAYOUTSTATS) at /nfs-ganesha/src/MainNFSD/nfs_metrics.c:199
*13 register_nfsv4_operations_metrics () at /nfs-ganesha/src/MainNFSD/nfs_metrics.c:217
*14 nfs_metrics__init () at /nfs-ganesha/src/MainNFSD/nfs_metrics.c:333
*15 0x0000fffff7c5584c in nfs_Init (p_start_info=0xaaaaaaab41e0 <my_nfs_start_info>) at /nfs-ganesha/src/MainNFSD/nfs_init.c:1007
*16 nfs_start (p_start_info=p_start_info@entry=0xaaaaaaab41e0 <my_nfs_start_info>) at /nfs-ganesha/src/MainNFSD/nfs_init.c:1270
*17 0x0000aaaaaaaa279c in main (argc=<optimized out>, argv=<optimized out>) at /nfs-ganesha/src/MainNFSD/nfs_main.c:620
(gdb) frame 12
*12 0x0000fffff7c580d8 in register_nfsv4_operation_metrics (statcode_index=<optimized out>, opcode=NFS4_OP_LAYOUTSTATS) at /nfs-ganesha/src/MainNFSD/nfs_metrics.c:199
199 /nfs-ganesha/src/MainNFSD/nfs_metrics.c: No such file or directory.
(gdb) p labels
$7 = {{key = 0xfffff7d4d978 "op", value = 0x3 <error: Cannot access memory at address 0x3>}, {key = 0xfffff7d4b9f0 "status", value = 0xfffff7d62b50 "UNKNOWN NFSv4 ERROR CODE"}}
```

Change-Id: I77681e2dac4274f8dad3ef03adbda80c6531739d
Signed-off-by: Jason Woodward <jawoodwa@microsoft.com>
---
M src/support/nfs_convert.c
1 file changed, 1 insertion(+), 0 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/47/1200047/1

To view, visit change 1200047. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I77681e2dac4274f8dad3ef03adbda80c6531739d
Gerrit-Change-Number: 1200047
Gerrit-PatchSet: 1
Gerrit-Owner: Jason Woodward <jawoodwa@microsoft.com>