hl2sl is a simple tool to transform hardlinks to symlinks for filesystems that don't support hardlinks, such as BeeGFS.
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.
Run hl2sl
from the directoy to convert.
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.
Contributions are welcome through GitHub pull requests.
Please report bugs and feature requests on GitHub issues.
hl2sl is copyright (C) 2019 Jérémie Roquet [email protected] and licensed under the ISC license.