nfsd: COPY with length 0 should copy to end of file
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 19 Mar 2021 00:03:23 +0000 (20:03 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 22 Mar 2021 14:19:04 +0000 (10:19 -0400)
commit792a5112aa90e59c048b601c6382fe3498d75db7
tree5f486b65fcfc752e8ca47f82000268c5e1ea21a8
parent34a624931b8c12b435b5009edc5897e4630107bc
nfsd: COPY with length 0 should copy to end of file

>From https://tools.ietf.org/html/rfc7862#page-65

A count of 0 (zero) requests that all bytes from ca_src_offset
through EOF be copied to the destination.

Reported-by: <radchenkoy@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c