Re: [Devel] [PATCH vz9 v2] fs/fuse kio: implement rpc errors collection

2023-07-27 Thread Alexey Kuznetsov
Hello! Looks fine except for one moment. I would prefer to see atomic isolation of record before its copy to user and prohibition to read partial from the counter area. Yep, this means that in case of EFAULT we miss report counter under read, this imaginary problem might look as bad, but actually

[Devel] [PATCH vz9 v2] fs/fuse kio: implement rpc errors collection

2023-07-27 Thread Yuriy Vasilev
Implement collecting rpc errors and exporting them to userspace fuse daemon via relayfs. Errors are grouped per IP addresses and exported as a field of kfuse_metrics struct. This field is updated on each read. Also move pcs_net* functions to a separate file. Affects: #VSTOR-70161 https://pmc.acro