taaahaaa75@gmail.com has uploaded this change for review.

View Change

FSAL_VFS: implement NFSv4.2 READ_PLUS

Use SEEK_DATA and SEEK_HOLE to report sparse file extents through NFSv4.2 READ_PLUS. Return short data extents at hole boundaries and avoid retaining or transmitting buffers for hole responses.

Also clear the data pointer for zero-length READ_PLUS results to avoid retaining a released buffer.

Fixes: https://github.com/nfs-ganesha/nfs-ganesha/issues/1344

Related-to: https://github.com/nfs-ganesha/nfs-ganesha/issues/1188
Change-Id: I85202481f987b547c244184e2666f8c00bea2d11
Signed-off-by: t.hosseini <taaahaaa75@gmail.com>
---
M src/FSAL/FSAL_VFS/file.c
M src/Protocols/NFS/nfs4_op_read.c
2 files changed, 100 insertions(+), 22 deletions(-)

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

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

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I85202481f987b547c244184e2666f8c00bea2d11
Gerrit-Change-Number: 1245611
Gerrit-PatchSet: 1
Gerrit-Owner: taaahaaa75@gmail.com