Page MenuHomeFreeBSD

fusefs: fix copy_file_range when extending a file
ClosedPublic

Authored by asomers on Nov 28 2021, 6:56 PM.
Tags
None
Referenced Files
F108516898: D33151.id99125.diff
Sat, Jan 25, 7:55 PM
F108510979: D33151.id99125.diff
Sat, Jan 25, 7:01 PM
Unknown Object (File)
Sun, Jan 19, 9:18 PM
Unknown Object (File)
Fri, Jan 17, 8:09 AM
Unknown Object (File)
Thu, Jan 16, 8:15 AM
Unknown Object (File)
Sat, Jan 11, 10:47 PM
Unknown Object (File)
Nov 30 2024, 4:03 PM
Unknown Object (File)
Nov 18 2024, 5:52 PM
Subscribers

Details

Summary

When copy_file_range extends a file, it must update the cached file
size.

MFC after: 2 weeks

Test Plan

test case added

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks ok to me, although I really don't know the fuse code,
so I can't say if it is correct.

asomers added subscribers: rmacklem, pfg.

Thanks for your input, @rmacklem . You're probably the most knowledgeable person about VOP_COPY_FILE_RANGE in general. @pfg , do the fuse changes look good to you?

This revision is now accepted and ready to land.Nov 29 2021, 12:26 AM