Repository navigation
uucore: share replace_link's atomic replace - #15122
abendrothj wants to merge 2 commits into
Conversation
Merging this PR will degrade performance by 8.58%2 warnings, 1 note
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
c7045d6 to
b872c65
Compare
b872c65 to
5d10e9b
Compare
5d10e9b to
f5b87ae
Compare
|
@abendrothj please rebase for a clean history |
f5b87ae to
8c7924c
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Rebased onto main and squashed into one commit. |
8c7924c to
94af8e7
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
94af8e7 to
4d02b5c
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
4d02b5c to
70f203b
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
70f203b to
4919ab8
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
It's two commits again: the unreadable-directory fix, then moving the atomic replace into |
For ln -f/-sf, cp -lf/-sf and mv's cross-device symlink. Without O_PATH or O_SEARCH (OpenBSD, Hurd) it falls back to the directory's path.
ln and mv's cross-device move use it next. The no-unique-temp-name error is now translated.
4919ab8 to
04efb4f
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Binary size comparison: |
|
GNU testsuite comparison: |
replace_linkcreates a temporary link and renames it over the target. That part moves intoDirAnchor, a directory held open where the platform allows, whosereplace_existing_entry_atcreates the entry through a callback relative to the directory. ln and mv's cross-device move use it next (#15524, #13334).The parent is now opened search-only (
O_PATHon Linux and Android,O_SEARCHon macOS, FreeBSD, NetBSD and illumos), soln -f/-sf,cp -lf/-sfand mv's cross-device symlink replace an entry in a directory with write and search but no read permission, as with GNU 9.12, instead of failing with EACCES. Without either flag (OpenBSD, Hurd) the directory is still used by path. Running out of temporary names reports a translated error. Tests:test_cp_symlink_force_in_write_search_only_dir,test_symlink_overwrite_force_in_write_search_only_dir,test_hard_link_overwrite_force_in_write_search_only_dir, and a unit test.Closes #15112