Skip to content

Convert hardlinks to symlinks for filesystems that don't support hardlinks

License

Notifications You must be signed in to change notification settings

Arkanosis/hl2sl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

hl2sl Version License

hl2sl is a simple tool to transform hardlinks to symlinks for filesystems that don't support hardlinks, such as BeeGFS.

How it works

hl2sl replaces all files with more than one hardlink to symlinks to a unique hardlink in the .hardlinks directory.

Hardlinks in the .hardlinks directory are named after their inode, so it's possible to run the script several times.

Replacement symlinks have the same modification time as the original hardlinks.

Usage

Run hl2sl from the directoy to convert.

Dependencies

hl2sl currently depends on python2 as a workaround for old distros which do not ship a recent enough version of binutils (eg. RHEL6).

Starting somewhere in 2020, as RHEL6 and python2 will both be EOL, a recent version of binutils (one which supports the -r flag of ln) will be required instead.

Contributing and reporting bugs

Contributions are welcome through GitHub pull requests.

Please report bugs and feature requests on GitHub issues.

License

hl2sl is copyright (C) 2019 Jérémie Roquet jroquet@arkanosis.net and licensed under the ISC license.

About

Convert hardlinks to symlinks for filesystems that don't support hardlinks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages