Page MenuHomeFreeBSD

cp: Refactor the core logic.
ClosedPublic

Authored by des on Dec 13 2023, 11:24 PM.
Tags
None
Referenced Files
F114398501: D43055.id131424.diff
Sat, Apr 12, 3:22 AM
Unknown Object (File)
Feb 22 2025, 2:26 PM
Unknown Object (File)
Feb 22 2025, 1:55 PM
Unknown Object (File)
Feb 22 2025, 1:53 PM
Unknown Object (File)
Jan 29 2025, 4:31 PM
Unknown Object (File)
Jan 28 2025, 6:13 PM
Unknown Object (File)
Jan 27 2025, 5:03 PM
Unknown Object (File)
Jan 27 2025, 7:37 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 54940
Build 51829: arc lint + arc unit