mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
Merge pull request #6300 from taandrighetti/1.1_fix-dir-hardlinkmasters
Backport: diff: reduce memory consumption, fix is_hardlink_master
This commit is contained in:
commit
4ca99c4e04
1 changed files with 1 additions and 1 deletions
|
|
@ -1200,7 +1200,7 @@ class Archiver:
|
|||
return 'source' not in item or not hardlinkable(item.mode) or item.source in hardlink_masters
|
||||
|
||||
def is_hardlink_master(item):
|
||||
return item.get('hardlink_master', True) and 'source' not in item
|
||||
return item.get('hardlink_master', True) and 'source' not in item and hardlinkable(item.mode)
|
||||
|
||||
def update_hardlink_masters(item1, item2):
|
||||
if is_hardlink_master(item1) or is_hardlink_master(item2):
|
||||
|
|
|
|||
Loading…
Reference in a new issue