Skip to content

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

@jandubois

Description

@jandubois

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions