Change in ...nfs-ganesha[next]: NFS4 - Allow locking past the FSAL's maxfilesize
Daniel Gryniewicz has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/452873 Change subject: NFS4 - Allow locking past the FSAL's maxfilesize ...................................................................... NFS4 - Allow locking past the FSAL's maxfilesize rfc5661 only allows lock failers when the offset + length overflows a 64-bit integer. However, many FSALs have a max file size of 63-bits. We were returning BAD_RANGE in this case. It seems better to allow this, so fix it up so that an attempt to lock past maxfilesize will be transformed into "lock the rest of the file". Change-Id: I634ea27cc2dfe22e91ace0ddb9027d2bc36906c6 Signed-off-by: Daniel Gryniewicz <dang@redhat.com> --- M src/Protocols/NFS/nfs4_op_lock.c M src/Protocols/NFS/nfs4_op_lockt.c M src/Protocols/NFS/nfs4_op_locku.c 3 files changed, 12 insertions(+), 24 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/73/452873/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/452873 To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: I634ea27cc2dfe22e91ace0ddb9027d2bc36906c6 Gerrit-Change-Number: 452873 Gerrit-PatchSet: 1 Gerrit-Owner: Daniel Gryniewicz <dang@redhat.com> Gerrit-MessageType: newchange
participants (1)
-
Daniel Gryniewicz (GerritHub)