Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose FICLONE and FICLONERANGE constants in fcntl #93475

Closed
illia-v opened this issue Jun 3, 2022 · 0 comments · Fixed by #93478
Closed

Expose FICLONE and FICLONERANGE constants in fcntl #93475

illia-v opened this issue Jun 3, 2022 · 0 comments · Fixed by #93478
Labels
type-feature

Comments

@illia-v
Copy link
Contributor

@illia-v illia-v commented Jun 3, 2022

Feature or enhancement

fcntl exposes many constants for the fcntl and ioctl system calls. The module should expose FICLONE and FICLONERANGE too; they can be passed to ioctl to share some data of one file with another file by reflinking on some filesystems (e.g., btrfs, OCFS2, and XFS).
https://man7.org/linux/man-pages/man2/ioctl_ficlone.2.html

Pitch

These constants can be used to reflink files in users' code, and they have a potential to be used in shutil in the future #81338.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant