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)
Sep 23 2024, 5:49 AM
Unknown Object (File)
Sep 22 2024, 7:38 PM
Unknown Object (File)
Sep 22 2024, 12:16 PM
Unknown Object (File)
Sep 18 2024, 2:31 PM
Unknown Object (File)
Sep 18 2024, 8:10 AM
Unknown Object (File)
Sep 16 2024, 2:22 PM
Unknown Object (File)
Sep 16 2024, 2:22 PM
Unknown Object (File)
Sep 16 2024, 2:22 PM

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