deepakarumugam.s@nutanix.com has uploaded this change for review.

View Change

Initialize read_arg->info properly for read_plus

We used to fill read_arg->info for readplus. The FSALs rely on
this buffer being filled for readplus handling. But it looks
like ac337c37db84855f406ab85c9a9583ead2a32975 deleted it.
This looks like a accident - hence reintroducing this line.

Currently VFS returns ENOTSUPP if this read_arg->info is not
NULL (i.e.) if it is a readplus operation. But since we don't
set read_arg->info properly we end up handling it like a normal
read in FSAL_VFS and finally return an empty file to the client.

Change-Id: I029c141e09b37434fd5c1801226f05dc82017408
Signed-off-by: Deepak Arumugam Sankara Subramanian <deepakarumugam.s@nutanix.com>
---
M src/Protocols/NFS/nfs4_op_read.c
1 file changed, 1 insertion(+), 0 deletions(-)

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

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

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I029c141e09b37434fd5c1801226f05dc82017408
Gerrit-Change-Number: 1202319
Gerrit-PatchSet: 1
Gerrit-Owner: deepakarumugam.s@nutanix.com