Page MenuHomeFreeBSD

install: Don't skip syncing in the common case.
ClosedPublic

Authored by des on Apr 12 2024, 2:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 23 2024, 2:14 PM
Unknown Object (File)
Nov 23 2024, 9:46 AM
Unknown Object (File)
Nov 21 2024, 6:40 AM
Unknown Object (File)
Sep 28 2024, 8:52 AM
Unknown Object (File)
Sep 28 2024, 6:56 AM
Unknown Object (File)
Sep 22 2024, 5:07 PM
Unknown Object (File)
Sep 19 2024, 6:57 PM
Unknown Object (File)
Sep 18 2024, 12:13 AM
Subscribers

Details

Summary

In copy(), if no digest was requested (which is the common case), we
use copy_file_range() to avoid needlessly copying the contents of the
file into user space and back. When copy_file_range() returns
successfully (which, again, is the common case), we simply return, and
therefore never get to the point where we call fsync() if the -S
option was specified. Fix this.

MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

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