-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added reflinking as option for the post processor #3394
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for the contribution. 👍
medusa/helpers/__init__.py
Outdated
:type dest_file: str | ||
""" | ||
try: | ||
reflink.reflink(str(src_file), str(dest_file)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the str() here?
requirements.txt
Outdated
@@ -20,6 +20,7 @@ profilehooks==1.9.0 | |||
PyGithub==1.35 | |||
PyNMA==1.0 | |||
python-dateutil==2.6.1 | |||
reflink=0.1.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double ==
instead of single =
. You also need to include the reflink package in the ext
folder, as we currently still bundle external packages.
I would add a note quick explaining this setting |
@fernandog Were would you suggest adding this note? |
@Kriskras99 |
@Kriskras99 I would add here: https://github.com/pymedusa/Medusa/pull/3394/files#diff-78821c2496564ec7b9c01846a747a2caL79 @medariox what do you think? |
@fernandog |
@medariox it could be added as an optional feature that you have to manually install the package and it uses it only if available, similar to mediainfo. |
This adds reflink support for CoW filesystems, currently only BTRFS, upstream is working on adding support for Apple's APFS and I'm looking into Windows' ReFS.