1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 18:28:42 +00:00

fix partial extract for hardlinked contentless file types, fixes #4725

if the file is not a regular file, but a hardlink slave with a not
extracted hardlink master, chunks will be None and we must not call
preload(chunks).

(cherry picked from commit 291d58efa1)
This commit is contained in:
Thomas Waldmann 2019-08-23 00:24:23 +02:00 committed by Saurav Sachidanand
parent 373bd8abd3
commit cb2d31ed98

View file

@ -293,7 +293,8 @@ def preload(chunks):
if source not in masters_preloaded:
# we only need to preload *once* (for the 1st selected slave)
chunks, _ = hardlink_masters[source]
preload(chunks)
if chunks is not None:
preload(chunks)
masters_preloaded.add(source)
else:
# easy: we do not have a filter, thus all items are selected, thus we need to preload all chunks.