diff options
author | 2022-10-13 11:58:01 -0400 | |
---|---|---|
committer | 2022-10-27 15:52:10 -0400 | |
commit | 038efb6348ce96228f6828354cb809c22a661681 (patch) | |
tree | ee8fbf07ed6e8a8931bcea50136d113f9a81f9e2 /scripts/generate_rust_analyzer.py | |
parent | SUNRPC: Fix crasher in gss_unwrap_resp_integ() (diff) | |
download | linux-dev-038efb6348ce96228f6828354cb809c22a661681.tar.xz linux-dev-038efb6348ce96228f6828354cb809c22a661681.zip |
NFSv4.2: Fixup CLONE dest file size for zero-length count
When holding a delegation, the NFS client optimizes away setting the
attributes of a file from the GETATTR in the compound after CLONE, and for
a zero-length CLONE we will end up setting the inode's size to zero in
nfs42_copy_dest_done(). Handle this case by computing the resulting count
from the server's reported size after CLONE's GETATTR.
Suggested-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Fixes: 94d202d5ca39 ("NFSv42: Copy offload should update the file size when appropriate")
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions