Skip to content

swapped source and destination #2

@pmhahn

Description

@pmhahn

Your https://github.com/SpliFF/python-ioctl/blob/master/example.py#L33 hat the source and destination swapped:

ret = fcntl.ioctl(srcfd.fileno(), BTRFS_IOC_CLONE, dstfd.fileno())

See man:ioctl_ficlonerange(2):

int ioctl(int dest_fd, FICLONE, int src_fd);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions