Bug 219554 - If an NFSv4 server replies with a smaller than correct file size when being closed, client will use this.
Summary: If an NFSv4 server replies with a smaller than correct file size when being c...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Rick Macklem
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-25 20:22 UTC by Rick Macklem
Modified: 2017-05-27 01:48 UTC (History)
1 user (show)

See Also:


Attachments
don't shrink file in nfs_close() for NFSv4 (365 bytes, patch)
2017-05-25 20:22 UTC, Rick Macklem
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Macklem freebsd_committer 2017-05-25 20:22:28 UTC
Created attachment 182912 [details]
don't shrink file in nfs_close() for NFSv4

If an NFSv4 server replies with a size smaller than what it currently is
for a file when doing an VOP_CLOSE(), the client erroneously would believe
this smaller size. This bug was only observed during testing of a broken
server, but this patch fixes it in any case.