Lior Suliman has uploaded this change for review.

View Change

Change NFSv3 proxy FSAL to return delay instead of invalid val or server fault to the client [b/234604886]

If there is an error in sending / receiving a response to / from the NFSv3 server, return the
client with NFS4ERR_DELAY that will cause it to retry issuing that operation
https://datatracker.ietf.org/doc/html/rfc5661#section-15.1.1.3

For this not to be an issue, we also need to change the current way the XID is generated by the NFSv3 proxy FSAL
so that two requests that are the same will yield with the same XID, otherwise it can be executed more than once
by the NFSv3 back-end server as they will be recognized as different request

Signed-off-by: Lior Suliman <liorsu@gmail.com>
Change-Id: If94c1485ec0ea8fca4e9ad2afc8128eaa0baaa77
---
M src/FSAL/FSAL_PROXY_V3/main.c
M src/FSAL/FSAL_PROXY_V3/nlm.c
2 files changed, 13 insertions(+), 13 deletions(-)

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

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

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: If94c1485ec0ea8fca4e9ad2afc8128eaa0baaa77
Gerrit-Change-Number: 1201315
Gerrit-PatchSet: 1
Gerrit-Owner: Lior Suliman <liorsu@google.com>