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

linux: use copy_file_range for uv_fs_copyfile when possible #2352

Merged
merged 1 commit into from Jul 28, 2020

Conversation

CarterLi
Copy link
Contributor

According to the man page:

copy_file_range() gives filesystems an opportunity to implement "copy acceleration" techniques, such as the use of reflinks (i.e., two or more inodes that share pointers to the same copy-on-write disk blocks) or server-side-copy (in the case of NFS).

Thus copy_file_range may provide better performance on certain devices.

Tested on Linux archlinux-pc 5.1.15-arch1-1-ARCH

Ref: #925 (comment)

@CarterLi CarterLi force-pushed the v1.x branch 2 times, most recently from 9ac78b7 to 5b3957d Compare June 26, 2019 07:11
src/unix/fs.c Outdated Show resolved Hide resolved
src/unix/fs.c Outdated Show resolved Hide resolved
src/unix/fs.c Outdated Show resolved Hide resolved
@CarterLi CarterLi force-pushed the v1.x branch 2 times, most recently from 3e15794 to f86f56f Compare July 2, 2019 13:02
@CarterLi
Copy link
Contributor Author

CarterLi commented Jul 2, 2019

Fixed, please review @bnoordhuis

src/unix/fs.c Show resolved Hide resolved
@santigimeno
Copy link
Member

@stale
Copy link

stale bot commented Nov 12, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 12, 2019
@stale stale bot closed this Nov 19, 2019
@santigimeno santigimeno reopened this Nov 19, 2019
@stale stale bot removed the stale label Nov 19, 2019
@stale
Copy link

stale bot commented Jan 13, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 13, 2020
@stale stale bot removed the stale label Jul 28, 2020
Refs: libuv#925 (comment)
PR-URL: libuv#2352
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Jameson Nash <vtjnash@gmail.com>
@vtjnash
Copy link
Member

vtjnash commented Jul 28, 2020

@vtjnash vtjnash merged commit ca10e36 into libuv:v1.x Jul 28, 2020
JeffroMF pushed a commit to JeffroMF/libuv that referenced this pull request May 16, 2022
Refs: libuv#925 (comment)
PR-URL: libuv#2352
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Jameson Nash <vtjnash@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants