Skip to content

Add symlink locking for filesystems that do not support hardlinks - #1708

Merged
JeanChristopheMorinPerso merged 3 commits into
AcademySoftwareFoundation:mainfrom
cfxegbert:symlink-locking
Apr 13, 2024
Merged

JeanChristopheMorinPerso merged 3 commits into
AcademySoftwareFoundation:mainfrom
cfxegbert:symlink-locking

Conversation

@cfxegbert

@cfxegbert cfxegbert commented Apr 4, 2024 •

Copy link
Copy Markdown
Contributor

In our environment we are using a StorNext file server over Samba on our Mac OSX machines. Mounting over Samba does not allow creating hardlinks. The work done in #903 adds the ability to explicitly use mkdir instead of hardlinks. mkdir may not be an atomic operation on non-local filesystems.

See https://www.mail-archive.com/freebsd-hackers@freebsd.org/msg20456.html

@cfxegbert
cfxegbert requested a review from a team as a code owner April 4, 2024 22:51
@linux-foundation-easycla

linux-foundation-easycla Bot commented Apr 4, 2024 •

Copy link
Copy Markdown

CLA Signed

The committers listed above are authorized under a signed CLA.

@JeanChristopheMorinPerso JeanChristopheMorinPerso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I left two nitpick comments in the docs.

Comment thread src/rezplugins/package_repository/rezconfig Outdated
Comment thread src/rezplugins/package_repository/rezconfig Outdated
@JeanChristopheMorinPerso JeanChristopheMorinPerso added this to the Next milestone Apr 7, 2024

@JeanChristopheMorinPerso JeanChristopheMorinPerso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @cfxegbert!

@JeanChristopheMorinPerso

Copy link
Copy Markdown
Member

@cfxegbert can you fix the DCO thing please? You can follow the instructions at https://github.com/AcademySoftwareFoundation/rez/pull/1708/checks?check_run_id=23579052094.

@codecov

codecov Bot commented Apr 8, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.27%. Comparing base (1b9c72a) to head (d45e5d3).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1708   +/-   ##
=======================================
  Coverage   58.27%   58.27%           
=======================================
  Files         126      126           
  Lines       17157    17157           
  Branches     3504     3504           
=======================================
  Hits         9998     9998           
  Misses       6494     6494           
  Partials      665      665           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cfxegbert and others added 3 commits April 13, 2024 15:00
Add symlink locking for filesystems that do not support hardlinks

Signed-off-by: Robert Minsk <robertminsk@yahoo.com>
Co-authored-by: Jean-Christophe Morin <38703886+JeanChristopheMorinPerso@users.noreply.github.com>
Signed-off-by: Robert Minsk <38872275+cfxegbert@users.noreply.github.com>
Signed-off-by: Robert Minsk <robertminsk@yahoo.com>
Signed-off-by: Robert Minsk <robertminsk@yahoo.com>
@JeanChristopheMorinPerso

Copy link
Copy Markdown
Member

(I rebased the branch to fix a conflict)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants