Page MenuHomeFreeBSD

cp: Refactor the core logic.
ClosedPublic

Authored by des on Dec 13 2023, 11:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 3, 1:28 PM
Unknown Object (File)
Fri, May 17, 9:36 AM
Unknown Object (File)
Fri, May 10, 10:10 AM
Unknown Object (File)
Thu, May 9, 2:16 AM
Unknown Object (File)
May 1 2024, 9:31 PM
Unknown Object (File)
May 1 2024, 6:39 PM
Unknown Object (File)
May 1 2024, 3:31 PM
Unknown Object (File)
May 1 2024, 11:09 AM

Details

Summary

Rewrite copy_file() so the lflag and sflag are handled as early as possible instead of constantly checking that they're not set and then handling them at the end. This also opens the door to changing the failure logic at some future point (for instance, we might decide to fall back to copying if errno indicates that the file system does not support links).

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

Diff Detail

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