containerd / continuity

A transport-agnostic, filesystem metadata manifest system
https://containerd.io
Apache License 2.0
137 stars 66 forks source link

clonefile() should fall back to copyfile() for cross-device copying #224

Closed jandubois closed 1 year ago

jandubois commented 1 year ago

Sample error from Lima:

INFO[0000] Attempting to download the image              arch=x86_64 digest= location=/Users/jan/suse/alpine-lima/iso/alpine-lima-std-3.18.0-x86_64.iso
FATA[0000] failed to download "/Users/jan/suse/alpine-lima/iso/alpine-lima-std-3.18.0-x86_64.iso": clonefile failed: cross-device link

Right now the code only falls back to copyfile() when clonefile() returns ENOTSUP.