Madhu Thorat has uploaded this change for review.

View Change

RQUOTA: Get credentials for GETQUOTA/SETQUOTA requests

After commit b7813190eeac05e067d1909dba37e1bcbe65280f
nfs_req_creds() doesn't get called for GETQUOTA/SETQUOTA
requests as 'op_ctx->ctx_export' is NULL for RQUOTAD calls.
As credentials are not set, GETQUOTA/SETQUOTA requests fail
with EPERM error.
To fix this in rquota_getquota()/do_rquota_setquota() we now
set 'op_ctx->ctx_export' and call nfs_req_creds(), before
calling FSAL specific get_quota()/set_quota() for the export.

Change-Id: Ia02bb0aa8d37fbdc9372a9d9b66ebe76f696557c
Signed-off-by: Madhu Thorat <madhu.punjabi@in.ibm.com>
---
M src/Protocols/RQUOTA/rquota_getquota.c
M src/Protocols/RQUOTA/rquota_setquota.c
2 files changed, 66 insertions(+), 29 deletions(-)

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

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

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ia02bb0aa8d37fbdc9372a9d9b66ebe76f696557c
Gerrit-Change-Number: 469084
Gerrit-PatchSet: 1
Gerrit-Owner: Madhu Thorat <madhu.punjabi@in.ibm.com>
Gerrit-MessageType: newchange