Skip to content

Add hardlink function in filetools#5200

Closed
VRehnberg wants to merge 2 commits into
easybuilders:developfrom
VRehnberg:filetools_hardlink
Closed

Add hardlink function in filetools#5200
VRehnberg wants to merge 2 commits into
easybuilders:developfrom
VRehnberg:filetools_hardlink

Conversation

@VRehnberg

Copy link
Copy Markdown

Not heavily tested. Tried to mimic behavior of symlink function, but unsure if behavior is same when link_path is a existing broken symlink (overwrite attempt will be made, but unsure if it will be successful).

@akesandgren

Copy link
Copy Markdown
Contributor

Note that hardlinks aren't available on every possible filesystem that could be used for installation...
And never possible across file system borders....
So in principle they should never be used, ever...

@VRehnberg

Copy link
Copy Markdown
Author

I see. On the other hand using symlinks for datasets with a lot files can have some real impact on performance.

I'll start with just adding it as an option in the EasyBlock then and move the logic into the easyblock. Possibly, would be something that you want to be able to configure globally for datasets.

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